Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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.

0 Kudos