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: One cookie off
Date Tue, 07 Jun 2005 11:05:10 GMT
Hello Charles,

since you are using the compatibility cookie policy, my next
guess would be that the expiration date in the cookie causes
problems. Year 3000 is way after the expected 32 bit overflow
for the milliseconds in 2037. Java uses 64 bit to store the
milliseconds, but who knows... The double semicolon could
also cause problems while parsing the cookie, though I'm
not familiar with the code. Have you tried to enable logging
for the cookie policy?

hope that helps,

Charles Johnson <cj@cehjohnson.uklinux.net> 
06.06.2005 20:51
Please respond to
"HttpClient User Discussion"

HttpClient <httpclient-user@jakarta.apache.org>

One cookie off

I'm fetching a page in a loop and seem to be receiving two cookies yet
only seeing one of them appear in the array when i call getCookies. You
can see a short extract of my log file here:


This is what i'm doing in the code. 'client' is an instance variable.

cookies = client.getState().getCookies();

Why the discrepancy between the Set-Cookie headers and the number of
cookies in the array? Policy is set to CookiePolicy.BROWSER_COMPATIBILITY

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message