hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: JDK6 vs 5 changes
Date Thu, 18 Jan 2007 13:05:16 GMT
On Thu, 2007-01-18 at 14:00 +0100, Roland Weber wrote:
> 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?

Theoretically yes, but there are enough crappy CGI scripts out there
that make all sorts of silly assumptions.

Oleg


> 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message