Java DefaultHTTPClient automatically handle cookies

Posted by RenegadeAndy on Stack Overflow See other posts from Stack Overflow or by RenegadeAndy
Published on 2010-04-03T00:08:37Z Indexed on 2010/04/03 0:13 UTC
Read the original article Hit count: 781

Filed under:
|
|

Hi,

I have a piece of code using the DefaultHttpClient and it makes a post request to login to a website.

However subsequent requests appear to have forgotten the fact im signed in.

How do i turn on automatic cookie handling of the DefaultHttpClient I am using?

Cheers,

Andy

© Stack Overflow or respective owner

Related posts about cookies

Related posts about java