You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by motital74 <mo...@gmail.com> on 2011/01/13 14:34:11 UTC

Httpclient duplicate cookies issue

I am connecting to a web site which send in the response the same cookies
twice.
The first one with value and second one empty.
The httpclient take the last one (with the empty value) to the cookie store
and dismiss the one with the value.
I can see both cookies as part of the response header.

I am looking for:
1. a way to interferer with the httpclient where it place the cookies in the
cookies store?
2. other alternative?
-- 
View this message in context: http://old.nabble.com/Httpclient-duplicate-cookies-issue-tp30662196p30662196.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


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


Re: Httpclient duplicate cookies issue

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2011-01-13 at 05:34 -0800, motital74 wrote:
> I am connecting to a web site which send in the response the same cookies
> twice.
> The first one with value and second one empty.
> The httpclient take the last one (with the empty value) to the cookie store
> and dismiss the one with the value.
> I can see both cookies as part of the response header.
> 
> I am looking for:
> 1. a way to interferer with the httpclient where it place the cookies in the
> cookies store?

You can either implement a custom CookieStore or replace
ResponseProcessCookie protocol interceptor with a custom implementation.

> 2. other alternative?

Ask maintainers of the site to fix the broken script.

Oleg




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