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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greubel
Visitor

Request sequence numbers ?

I'm trying to implement a http request sequence number and I'm finding it to be impossible. You can set a add headers value but because the requests are tied to different objects that get accessed at different times, it doesn't work. You can set a value and if the item is in cache, it doesn't get sent.

There needs to be some sort of callback to modify the http header values just before the request is issued.

Anyone try this ?
0 Kudos
4 REPLIES 4
RokuKevin
Visitor

Re: Request sequence numbers ?

There is no callback on the ifHttpAgent interface to dynmically modify the header values on each of a components requests..... Why would you need to do this?

--Kevin
0 Kudos
greubel
Visitor

Re: Request sequence numbers ?

I'm trying to implement an encrypted cookie that contains a sequence number
0 Kudos
TheEndless
Channel Surfer

Re: Request sequence numbers ?

I've noticed, and reported, a problem in 2.9 where custom headers are lost on requests that get redirected via 302. This wasn't an issue prior to 2.9, so it's definitely something that was broken recently.
I have no idea if that helps or is even related to what you're seeing, greubel, but it seemed worth mentioning.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
greubel
Visitor

Re: Request sequence numbers ?

I'm just trying to set a cookie on the Roku side. The only problem of not getting it sent, is on a PrefetchPoster() on a roSpringboardScreen object. The prefetch is not passing the cookie. I reported this in another post.

There are a lot of objects that allow setting the http headers but once you set them the underlying requests are fixed. You could load up a audio player with 100 songs and each would have the same headers. It would be NICE if there was a way to modify the cookie on each of the GETS.

There is a problem with my server detecting intruders. I'm generating an encrypted cookie with a sequence number and other stuff but for these 100 songs or photos for slideshows the number is the same. Which I allow, if the request is for a media object. That's where a callback would be nice.
0 Kudos