You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Chuck Murcko <ch...@telebase.com> on 1996/01/05 20:44:51 UTC
Window-target: header
Ack sent.
BeachNet liltingly intones:
> From beachnet@emi.net Thu Jan 4 20:13:03 1996
> Sender: root@emi.net
> Message-Id: <30...@emi.net>
> Date: Thu, 04 Jan 1996 20:07:31 -0500
> From: BeachNet <be...@emi.net>
> X-Mailer: Mozilla 2.0b4 (X11; I; Linux 1.2.13 i586)
> Mime-Version: 1.0
> To: Chuck Murcko <ch...@wormhole.telebase.com>
> Subject: Re: (no subject)
> References: <19...@telebase.com.>
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Chuck,
>
> This does not work as Apache interperts everything following
> Content-type text/html line (including Location: MAIN\n\n) as an HTML
> document and netscape displays it ...
>
> Bev.
>
> I am starting to conclude that the Location: header causes Apache to
> ignore all preceeding commands suchas Window-target:, etc.
>
> Here is an example of my script and what it produces in telnet to port
> 80 of my server ...
>
> #!/usr/bin/perl
>
> print "Window-target: MAIN\n";
> print "Location: /docs/testout.html\n\n";
> #print "Content-type: text/html\n\n";
> #print "<html><head><title>TEST</title></head>\n";
> #print "<center>Hello There</center></html>\n";
>
> Produces ....
>
> telnet ttyen.emi.net 80
> Trying 204.181.45.165...
> Connected to ttyen.emi.net.
> Escape character is '^]'.
> GET /cgi-bin/test.pl HTTP/1.0
>
> HTTP/1.0 200 OK
> Date: Fri, 05 Jan 1996 01:03:45 GMT
> Server: Apache/1.0.0
> Content-type: text/html
> Content-length: 79
> Last-modified: Thu, 04 Jan 1996 23:37:08 GMT
>
> <HTML>
> <HEAD><TITLE>TEST</TITLE></HEAD>
> <CENTER>
> Hello There
> </CENTER>
> </HTML>
> Connection closed by foreign host.
>
>
> As you can see the Window-target: line is omitted ... on the other hand
> ... the following script ...
> telnet ttyen.emi.net 80
> Trying 204.181.45.165...
> Connected to ttyen.emi.net.
> Escape character is '^]'.
> GET /cgi-bin/test.pl HTTP/1.0
>
> HTTP/1.0 200 OK
> Date: Fri, 05 Jan 1996 01:05:45 GMT
> Server: Apache/1.0.0
> Content-type: text/html
> Window-target: MAIN
>
> <html><head><title>TEST</title></head>
> <center>Hello There</center></html>
> Connection closed by foreign host.
>
>
> As you can see here the Window-target: line gets processed ... my guess
> there may be a bug in Apache or the intent is to drop all commands exept
> for the Location: when the Location: header is detected ...
>
> What do you advise?
>
> Thank you!
>
> Bev.
>
>
>
> Chuck Murcko wrote:
> >
> > Hi Bev. First, make sure the line
> >
> > AddType application/x-httpd-cgi .cgi
> >
> > is uncommented in the srm.conf config file.
> >
> > If it is, and your script isn't working, you'll probably need to emit a line
> > like
> >
> > echo -e "Content-type: text/html\n\n"
> >
> > first, before you try to send any of the other HTTP headers. This will force
> > correct MIME type for what follows.
> >
> > Let me know how it works out.
> >
> > BeachNet liltingly intones:
> > >
> > > Chuck,
> > >
> > > I hate to bother you but may be you can resolve the following ... Thank
> > > you in advance ... Bev.
> > >
> > > FYI:
> > >
> > > Thank you for the response .... I am boggled to why this does not work
> > > for me ...
> > >
> > > When I execute a CGI that starts with:
> > > -------------------------------------------------
> > > #!/bin/sh
> > > #File: Menu.cgi
> > >
> > > echo -e "Window-target: MAIN \n"
> > > echo -e "Location: /docs/file.html \n\n"
> > > ------------------------------------------------
> > >
> > > Netscape sees the Window-target statement as an unrecognized MIME type
> > > and asks the user what to save this file Menu.cgi as and does not even
> > > get to the /docs/file.html line ... hmm.
> > >
> > > I wonder if this is an apache problem ...
> > >
> > > Thank you!
> > >
> > > Bev.
> > >
> > >
> > > ----------
> > > From: Will Kessler[SMTP:kessler@roses.Stanford.EDU]
> > > Sent: Thursday, January 04, 1996 3:17 AM
> > > To: Alex P.
> > > Subject: Re: Window-target tag for Netscape Frames in a CGI ...
> > > HOW?
> > >
> > >
> > > Hi, Don't know about apache, but from netsite and ncsa I just use in
> > > perl5:
> > >
> > > print "Window-target: window_name$CRLF";
> > >
> > > where window_name is the one given in the frame tags. I put this along
> > > with
> > > other content headers. So NOT in the html.
> > >
> > > --
> > > Will Kessler
> > > kessler@roses.stanford.edu
> > > Rehabilition Research Division
> > > Dept. of Veterans Affairs
> > > 3801 Miranda Avenue/153
> > > Palo Alto, CA 93404-1200
> > > (415) 493-5000 x4726
> > >
> >
> > chuck
> > Chuck Murcko Telebase Systems, Inc. Wayne PA chuck@telebase.com
> > And now, on a lighter note:
> > "Yow! Am I having fun yet?"
> > -- Zippy the Pinhead
>
chuck
Chuck Murcko Telebase Systems, Inc. Wayne PA chuck@telebase.com
And now, on a lighter note:
It is better to kiss an avocado than to get in a fight with an aardvark