W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2000

Re: Combining multiple message-header fields

From: Life is hard, and then you die <ronald@innovation.ch>
Date: Sat, 15 Jul 2000 12:39:55 -0700
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: http-wg@hplb.hpl.hp.com
Message-ID: <20000715123955.A374@innovation.ch>
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/809
On Sat, Jul 15, 2000 at 05:44:40PM +0200, Bjoern Hoehrmann wrote:
> I'm building a HTTP UserAgent with PHP and now i'm dealing with this multiple
> message-header fields. If my UserAgent receives such multiple fields, should
> it combine these fields into one or should it keep the multiple fields and
> send it to the server (if present in a request)? The problem behind this is
> the storage of this header fields. Currently i have an associative array that
> does something like

Combining multiple header fields works just fine, with one exception: the
Set-Cookie header field. Some browsers don't handle multiple cookies in a
Set-Cookie header field (i.e. they require a separate header field for each
cookie to be set). Furthermore, because a number of sites use broken cookies
which contain commas in the value, parsing a combined Set-Cookie header field
can be a little tricky.


Received on Saturday, 15 July 2000 12:44:37 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:07 UTC