Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
rartavia
Level 7

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,
0 Kudos