hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "droidin.net" <dr...@droidin.net>
Subject Cookie problem
Date Sun, 04 Jul 2010 06:42:34 GMT

I'm trying to mimic OAuth authentication using HttpClient 4. That requires 2
calls - first I do GET to obtain the form and then I do POST to get security
code. GET works just fine - I get the form, no error. If I input GET URL in
the browser (JS disabled) and submit - everything works, however when I do
HttpPost using the same instance of HttpClient I was using to execute GET I
get an error complaining that my cookies are disabled. Indeed if I clear
cookies in the browser after I execute GET and obtain the form I get the
same error.
I was under impression that if I use the same HttpClient for 2 different
calls (GET & POST) it will retain the cookies. Am I wrong? And if yes - what
should I do to pass cookies to the subsequent POST?


Bo Stone
View this message in context: http://old.nabble.com/Cookie-problem-tp29067577p29067577.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

View raw message