httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Re: Apache and Cookies...
Date Fri, 29 Dec 1995 16:29:00 GMT
I was somewhat mistaken.

>Would a good fix be for Apache to treat outgoing headers the same
>way that it treats incoming headers?  Multiple Accept headers are
>resolved to a single header containing comma delimited elements:
>
>        Accept: foo, bar, baz

Yes, although passing the headers back using the syntax chosen by the script
would be preferable.

>util_script.c contains the scan_script_header() routine which reads
>header produced by CGI scripts.  Right at the end of the routine
>it's calling:
>
>        table_set (r->headers_out, w, l);
>
>the simplest fix would be to change this to read:
>
>        table_merge(r->headers_out, w, l);
>
>But this *would* cause problems for already working Netsite cookie
>magic.  NS's browsers don't understand what
>
>        Set-Cookie: foo, bar, baz 
>
>means and prefer:
>
>        Set-Cookie: foo
>        Set-Cookie: bar
>        Set-Cookie: baz

The HTTP/1.0 (draft) specification _requires_ these two forms to have the
same semantics. Netscape should be fixed to allow the comma-separated
alternative.

 David.

Mime
View raw message