rartavia
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019
07:34 AM
Stop POST request to follow redirect. 302
I am trying to make a POST request to an API, that API is going to return a 302 with a redirect in the headers.location is there a way to catch that redirect in the app? and stop following it?
Right now the request follows the redirect
I need to extract the location in the redirect before the redirect is done, I tried asking for the 302 and also I asked for the .head().GetResponseHeaders().location but looks like what I got is the final result.
I really appreciate any help on this.
Cheers,
Right now the request follows the redirect
I need to extract the location in the redirect before the redirect is done, I tried asking for the 302 and also I asked for the .head().GetResponseHeaders().location but looks like what I got is the final result.
I really appreciate any help on this.
Cheers,