Hello Mirya, > Then HttpClient with 1.5 sends this to the server: > Cookie: Cookie1=Value1;Cookie2=Value2 > > , while with 1.6 it's sent in twisted order: > Cookie: Cookie2=Value2;Cookie1=Value1 > > I've run it with both JDK version many times to be sure - the order stays the > same for every JDK version. So the questions are: > 1) Does the order matter from HTTP/1.1 point of view?
If the cookie names are different, the order shouldn't matter. > 2) If no (so the server handler is bugy), where does this differencecome from > and how to make 6 work as 5? HttpClient does not maintain cookie order. Maybe some algorithm in the underlying Map implementation has changed. You could implement a new cookie policy that sorts cookies according to your requirements. hope that helps, Roland
smime.p7s
Description: S/MIME Cryptographic Signature
