开发者

Java DefaultHTTPClient automatically handle cookies

开发者 https://www.devze.com 2022-12-26 02:09 出处:网络
I have a piece of code using the DefaultHttpClient and it makes a post request to login to a website.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号