Java DefaultHTTPClient automatically handle cookies
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 usi开发者_如何学编程ng?
Cheers,
Andy
Make shure to use the same DefaultHttpClient
for every request.
精彩评论