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.