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 httpclient_newbie <ad...@javaguru.org> on 2014/10/21 10:23:16 UTC
Re: SOME QUESTIONS ABOUT HTTPCLIENT 4
In HttpClient 3 I had some code where 3 instances of HttpClient shared a
common HttpState to share cookies, and did that with
client.getState() and client.setState(httpState)
How do I do that in HttpClient 4 ?
--
View this message in context: http://httpcomponents.10934.n7.nabble.com/SOME-QUESTIONS-ABOUT-HTTPCLIENT-4-tp15414p24727.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: SOME QUESTIONS ABOUT HTTPCLIENT 4
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2014-10-21 at 01:23 -0700, httpclient_newbie wrote:
> In HttpClient 3 I had some code where 3 instances of HttpClient shared a
> common HttpState to share cookies, and did that with
> client.getState() and client.setState(httpState)
>
> How do I do that in HttpClient 4 ?
>
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/statemgmt.html#d5e565
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: SOME QUESTIONS ABOUT HTTPCLIENT 4
Posted by httpclient_newbie <ad...@javaguru.org>.
I solved that by adding a CookieStore to a context, and I pass the context
along with each request
--
View this message in context: http://httpcomponents.10934.n7.nabble.com/SOME-QUESTIONS-ABOUT-HTTPCLIENT-4-tp15414p24799.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