php3-list | 199901
Date: 01/05/99
- Next message: Gergely Madarasz: "[PHP3] A small documentation fix"
- Previous message: James Thompson: "[PHP3] Is there a GPL'd Inventory System using PHP & MySQL"
- In reply to: Steve Edberg: "[PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Next in thread: Steve Edberg: "Re: [PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Reply: Steve Edberg: "Re: [PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 5 Jan 1999, Steve Edberg wrote:
> Apparently Netscape Enterprise 3.5.1 is pretty picky. I only had success by
> entering the file name and using HTTP 1.0:
>
> HEAD /index.shtml HTTP/1.0
This is a correct HTTP 1.0 request (given that it is properly
terminated by an empty line).
>
> returned
> HTTP/1.1 200 OK
> Server: Netscape-Enterprise/3.5.1
> Date: Wed, 06 Jan 1999 01:27:12 GMT
> Set-Cookie: EGSOFT_ID=169.237.8.30-2954095568.29243667; expires=Fri,
> 31-Dec-2010 00:00:00 GMT; path=/
> Content-type: text/html
> Connection: close
>
> Trying
> HEAD /index.shtml HTTP/1.1
> or
> HEAD / HTTP/1.1
...and these two are not valid HTTP 1.1 requests because HTTP 1.1 has
mandatory "Host:" line. HTTP 1.0 has no mandatory lines except the first
one and terminating empty line.
> returned
> HTTP/1.1 400 Bad Request
> Server: Netscape-Enterprise/3.5.1
>
> Your browser sent a message this server could not understand.
>
> while trying
> HEAD / HTTP/1.0
>
> returned
> HTTP/1.1 500 Server Error
> Server: Netscape-Enterprise/3.5.1
> Date: Wed, 06 Jan 1999 01:30:55 GMT
> Content-length: 305
> Content-type: text/html
> Connection: close
Request:
HEAD / HTTP/1.1
Host: www.netscape.com
returned:
HTTP/1.1 200 OK
Server: Netscape-Enterprise/3.6
Date: Wed, 06 Jan 1999 01:58:07 GMT
Set-Cookie:
UIDC=204.94.142.68:0915587888:445814;domain=.netscape.com;path=/;expires=31-Dec-2010
23:59:59 GMT
Set-cookie: NGUserID=cfc84b1e-4954-915587888-1; expires=Wednesday,
09-Nov-99 23:12:40 GMT; path=/
Content-type: text/html
Connection: close
>
> Other servers (at least Apache and IIS) seem to respond OK with just the
> '/'.
That means only that they ignore the lack of "Host:". The reason for
making "Host:" mandatory was to reduce the IP address space waste for
virtual hosts -- if it was optional, clients that were sending HTTP 1.1
requests without it will always see the "default" virtual server thus
defeating the idea of "Host:" header -- virtual servers without their
own IPs will work only for clients that send "Host:".
> That
(forgetting to RTFM thoroughly enough)
> makes it kinda difficult to do web-spider type things on Netscape
> Enterprise servers, though...
-- Alex---------------------------------------------------------------------- Excellent.. now give users the option to cut your hair you hippie! -- Anonymous Coward
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev <email protected>
- Next message: Gergely Madarasz: "[PHP3] A small documentation fix"
- Previous message: James Thompson: "[PHP3] Is there a GPL'd Inventory System using PHP & MySQL"
- In reply to: Steve Edberg: "[PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Next in thread: Steve Edberg: "Re: [PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Reply: Steve Edberg: "Re: [PHP3] HTTP header problem - Netscape 3.5.1 - resolved"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

