hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: JDK6 vs 5 changes
Date Thu, 18 Jan 2007 13:00:07 GMT
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


Mime
View raw message