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: Parse cookie with HttpClient?
Date Wed, 04 Jan 2017 14:11:26 GMT
On Sun, 2017-01-01 at 23:57 -0500, davidjesse091@aol.com wrote:
> I am working with a web service that returns cookies in the response
> http body instead of the response headers.
> I need to add these cookies to the HtmlUnit WebClient instance.
> I have extracted the cookie string. Are there any methods that
> automatically parse the cookie string? or would I have to parse the
> cookie manually and separate it by domain, name, value, etc...?

CookeSpec#parse is your friend.

Oleg

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