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: 
matrixebiz
Level 7

Code to have Roku wait for redirection link

Hello, there is some information I currently have the Roku read off a website which does work if I have it read the final destination website directly but what I need to do is send the Roku to a different link/site first that redirects it back to the final destination site which of course works in a web browser but is there some Brightscript code I can use that will allow the Roku to wait until the final destination site is landed on then read the information off that page? if you need more information let me know. Thank you
0 Kudos
15 Replies
joetesta
Level 10

Re: Code to have Roku wait for redirection link

roku is not a browser so i don't imagine it handles the browser redirect.  you probably need to parse that first response to get the redirect url then access that with a separate function.
aspiring
0 Kudos
belltown
Level 7

Re: Code to have Roku wait for redirection link

Roku handles HTTP redirects automatically, if that's what he was referring to, although the way the original question is worded I have no idea what he's referring to.
https://github.com/belltown/
0 Kudos
matrixebiz
Level 7

Re: Code to have Roku wait for redirection link

Hello, yes, that is what I am referring to (I thought I worded it correctly Smiley Happy ) but for some reason the redirect is not working correctly. 
Can you please post me the code I need to be able to parse it properly? Thank you
0 Kudos
matrixebiz
Level 7

Re: Code to have Roku wait for redirection link

The first page lands on a PHP script that redirects to the final destination
0 Kudos
RokuMarkn
Level 7

Re: Code to have Roku wait for redirection link

What is the php script returning to cause a redirection?  If it's using a normal 3xx HTTP status, this should be handled automatically by the Roku firmware.

--Mark
0 Kudos
matrixebiz
Level 7

Re: Code to have Roku wait for redirection link

Sent you a PM to try and explain as I'm not sure what you mean. Thx
0 Kudos
RokuMarkn
Level 7

Re: Code to have Roku wait for redirection link

Please post your replies here so that others can benefit from and participate in the conversation.

--Mark
0 Kudos
EnTerr
Level 8

Re: Code to have Roku wait for redirection link

Ah, where is an "upvote" button when i wish for one Smiley Happy
(one of the few things i miss from S.O. & co)
0 Kudos
matrixebiz
Level 7

Re: Code to have Roku wait for redirection link

Some of the code is proprietary/private to the original developer so don't think I can post it in a public forum. I don't see a thread for Coders for Hire, is there one? I don't mind giving a few hundred dollars a month if I can get the help I need. I didn't get any response from the Coders for Hire thread I posted last month Smiley Sad 
0 Kudos