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: 
alx
Visitor

Http Headers

I am trying to send authentication headers but i'm stuck.

Can some one shed some light on how to do this?

Thanks
0 Kudos
4 REPLIES 4
EnTerr
Roku Guru

Re: Http Headers

You talking about ifUrlTransfer.SetUserAndPassword() or what? Be specific, show code/details.
0 Kudos
alx
Visitor

Re: Http Headers

No, I'm referring how to add headers to the video player url.
0 Kudos
RokuKC
Roku Employee
Roku Employee

Re: Http Headers

"alx" wrote:
No, I'm referring how to add headers to the video player url.


Are you possibly looking to add custom HTTP headers, as you can do using ifHttpAgent AddHeader / SetHeaders?
https://sdkdocs.roku.com/display/sdkdoc/ifHttpAgent#ifHttpAgent-AddHeader(nameasString,valueasString...

This API is available for roVideoScreen, roVideoPlayer, etc.
0 Kudos
alx
Visitor

Re: Http Headers

Yes!

That is what I was looking for.

Thanks!
0 Kudos