RE: Set-Cookie vs list header parsing (i129), was: NEW ISSUE: repeating non-list-type-headers

Julian Reschke wrote:
>   Note: the "Cookie" and "Set-Cookie" headers as implemented in
>   practice (as opposed to how they are specified in [RFC2109])
>   can occur multiple times, but do not use the list syntax, 
>   and thus can not be combined into a single line.
>   (See [Kri2001] for details.) Also note that the
>   Cookie2/Set-Cookie2 headers specified in [RFC2965] do not
>   share this problem.

"Cannot" is better than "can not" here. But, what exactly does "cannot" mean
in a specification? Instead of making this a note, it is better to make it a
normative part of the specification using RFC 2119 language:

    The original definition of the "Cookie" and "Set-Cookie"
    header fields used ";" instead of "," as the list separator,
    and this legacy syntax is still in common use. To maximize
    compatibility, clients MUST send at most one "Cookie"
    header field, origin servers MUST send at most one "Set-Cookie"
    header field, and proxies MUST NOT combine multiple "Cookie"
    or "Set-Cookie" header field values. See section A.2.3 of
    [Kri2001] for details.

As Dave said, this seems to be what the majority of implementations actually
do.

Dave Kristol's paper is excellent but it is large and it talks about
political things as much as it talks about technical concerns. That is why I
changed the citation to mention section A.2.3 specifically.

Regards,
Brian

Received on Friday, 15 August 2008 20:32:04 UTC