开发者

How to to store http-cookies between sessions

开发者 https://www.devze.com 2023-01-10 01:44 出处:网络
I\'m developing an app that logs into a web site. To do this I use the HttpClient object. I noticed I could get all the cookies from the post requests with the HttClient.getCookieStore method, the qu

I'm developing an app that logs into a web site. To do this I use the HttpClient object.

I noticed I could get all the cookies from the post requests with the HttClient.getCookieStore method, the question is however how I save these cookies so the next time the app is started, the user don't have to log in.

I should also mention that while the logi开发者_如何转开发n was post request, rest of the site is mostly get requests, does this effect how the cookies are managed at all?

Thanks.

0

精彩评论

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