Hi Oleg,

> Not quite. See RFC 2109, 4.3.4 (Sending Cookies to the Origin Server)
> ...
> 
> If multiple cookies satisfy the criteria above, they are ordered in 
>    the Cookie header such that those with more specific Path attributes
>    precede those with less specific.  Ordering with respect to other
>    attributes (e.g., Domain) is unspecified.
> ...

Yes, but the order doesn't matter unless they have the same name, right?
The point of the sort order is to have cookies with more specific paths
take precedence over those with less specific path and the same name.


> HttpClient does attempt to order cookies properly [1] but for some
> strange reason it relies on RuleBasedCollator to compare path attributes
> [2], and I can only _assume_ something changed in the RuleBasedCollator
> implementation in Java 6 that causes HttpClient to produce different
> results.

There I was wrong indeed.

thanks,
  Roland

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to