HTTPClient and session handle or cookie save in file?
Hi,
Im wondered how are you doing session handle in HTTPClient requests?
I mean, for example we need make 2 requests like:
- Login to page, and store cookies
- Get data from another page
I tried find any idea how to do that, but nothing..
so maybe here you can share with your ideas?
maybe i should request as new feature in titanium? would be great if developers will code it asap, like saving cookies to a temp file, and in another request just read cookie file.. like cURL in PHP does..
5 Answers
-
You can manually grab the cookies from the response headers - "Set-Cookie" is the name of the header - then resend those cookies with the request if need be.
-
I'm working on a cookie respecting client.
http://www.tine20.org/forum/viewtopic.php?f=12&t=4608&p=18980#p18980
-
Has anyone got any code example of how to do this?
-
Has anyone got any code example of how to do this?
-
Hi,
Im wondered how are you doing session handle in HTTPClient requests?
I mean, for example we need make 2 requests like: 1. Login to page, and store cookies 2. Get data from another page