httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <p...@originat.demon.co.uk>
Subject Re: Window-target: header
Date Fri, 05 Jan 1996 20:14:29 GMT
In reply to Chuck Murcko who said
> 

Played around a bit with this.

With the following script

--------------------------------------------------------------------
#!/bin/sh

echo -e "Window-target: MAIN \n"
echo -e "Location: ../index.html\n\n"
--------------------------------------------------------------------

you get the following output from Apache

--------------------------------------------------------------------
GET /cgi-bin/Menu.cgi HTTP/1.0

HTTP/1.0 200 OK
Date: Fri, 05 Jan 1996 20:04:11 GMT
Server: Apache/1.0.0
Content-type: application/x-httpd-cgi
Window-target: MAIN 

Location: ../index.html


Connection closed by foreign host.
--------------------------------------------------------------------

With the following script

--------------------------------------------------------------------
#!/bin/sh

echo -e "Location: ../index.html\n\n"
echo -e "Window-target: MAIN \n"
--------------------------------------------------------------------

you get the following output

--------------------------------------------------------------------
GET /cgi-bin/Menu.cgi HTTP/1.0

HTTP/1.0 302 Found
Date: Fri, 05 Jan 1996 20:05:26 GMT
Server: Apache/1.0.0
Location: ../index.html
Content-type: text/html

<HEAD><TITLE>Document moved</TITLE></HEAD>
<BODY><H1>Document moved</H1>
The document has moved <A HREF="../index.html">here</A>.<P>
</BODY>
Connection closed by foreign host.
--------------------------------------------------------------------

Looks a little inconsistent to me since Apache is interpreting things
differently depending upon the order of the headers but I'm not
sure what "correct" would be.

The first example just looks plain wrong.

-- 
  Paul Richards, Netcraft Ltd.
  Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk
  Phone: 0370 462071 (Mobile), +44 1225 447500 (work)



Mime
View raw message