开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜