hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljesco <alje...@gmail.com>
Subject HttpClient & Cookie2
Date Sat, 26 Mar 2011 14:30:15 GMT
Hello,

Is there any way to get rid of "Cookie2: $Version=1" parameter in
request executing?

e.g., when I'm running next code,

CookieStore cookieStore = new BasicCookieStore();
HttpContext localContext = new BasicHttpContext();
localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);

HttpGet httpget = new HttpGet("http://www.google.com/");
HttpResponse response = httpclient.execute(httpget, localContext);
HttpEntity entity = response.getEntity();

EntityUtils.consume(entity);
httpclient.execute(httpget, localContext);

at first responce server sets only
Set-Cookie:xxxxxxxx
but httpClient sends both headers, cookie and cookie2:
Cookie: xxxxxxxx
Cookie2: $Version=1

Any ideas?

Thanks

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


Mime
View raw message