Forum Discussion
:smileyvery-happy:
Actually that does not help because cookie is received somewehere during redirects :(
- Lucian6 years agoCommunity Hero
That's why I proposed for you to disable the automatic redirects.
- ymkocv6 years agoOccasional Contributor
Yes, I've disabled it, but I do not know on which step I can get a cookie.
- Lucian6 years agoCommunity Hero
Well that should be quite simple, isn't it?
You start by making the first request (the one for which the redirects were handled automatically). That request should either have a Set-Cookie header right away or just a redirect location (thus a Location header). If you're just getting a Location header then create a new request to that location (don't forget to disable the redirects for that request as well).
Next off, if your redirect request still doesn't have a Set-Cookie header, you might want to repeat the steps above, so take the Location header again, create a new request etc. You might encounter multiple redirects until you finish off landing on some page.
Let me know how it goes for you :D
Related Content
Recent Discussions
- 7 days ago
- 11 days ago
xml to soap
Solved11 days ago