[CLUE-Tech] PHP Sessions and Cookies: Brain Cramp
David Anselmi
anselmi at americanisp.net
Sun Oct 13 07:28:25 MDT 2002
Keith Hellman wrote:
[...]
>
> All right, wait a minute - before we start flinging commands into
> web servers, can we first get the protocol straight.
>
> The correct syntax for GET is: "GET PATH VERSION\r\n\r\n". This
> returns headers. If you use GET like this: "GET PATH\r\n\r\n", then
> many web servers will simply return the document contents, without any
> HTTP headers, which is where cookies live. My impression is that this
> is incorrect since the HTTP requires and allows only the GET PATH
> VERSION syntax for a request.
Thanks Keith. I knew telnet could display headers (in fact sending a
bad request through squid does). I also knew we weren't using the
correct GET syntax but was too lazy to look it up :-(
Dave
More information about the clue-tech
mailing list