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

Does Roku API add http header "Expect:100-continue"?

Hi

We are seeing an issue where we see the http header "Expect: 100-continue" being added to the requests. We know that our lib is not adding this header, would like to know if any of Roku roUrlTransfer API adds this automatically to the requests?

Thanks.
0 Kudos
10 REPLIES 10
RokuJoel
Binge Watcher

Re: Does Roku API add http header "Expect:100-continue"?

Hi, do you see this with roURLTransfer's only or is this with video stream requests too?

- Joel
0 Kudos
vbacct
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

Hi

We are seeing it with the roURLTransfer requests.

Thanks
0 Kudos
RokuJoel
Binge Watcher

Re: Does Roku API add http header "Expect:100-continue"?

Ok. Is this causing some type of problem, or are you just asking out of curiosity?

- Joel
0 Kudos
vbacct
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

Yes, it is causing us some issues with response times. So trying to figure out how this gets set and if there is anything that can done to remove this header?

Thanks
0 Kudos
vbacct
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

Hi,

Could you also let me know when this header gets added? Is it based on the payload size? We are not seeing this header being added for every requests, only for certain requests.

Thanks
0 Kudos
RokuMarkn
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

As far as I can tell, this header is only added by the Roku when communicating with certain Netflix servers. Can you share a code sample that causes the header to be added?

--Mark
0 Kudos
vbacct
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

Hi Mark

Here is the code that we use
ut = CreateObject("roURLTransfer")
ut.SetPort(m..port)
ut.RetainBodyOnError(true)
ut.AddHeader("content-type", "application/json")
if urlString.InStr(0, "https") = 0
ut.SetCertificatesFile("common:/certs/ca-bundle.crt")
ut.InitClientCertificates()
end if
ut.SetURL(urlString)
ut.AsyncPostFromString('datatobeposted')

Thanks
0 Kudos
vbacct
Visitor

Re: Does Roku API add http header "Expect:100-continue"?

Any update on this?

Thanks
0 Kudos
RokuJoel
Binge Watcher

Re: Does Roku API add http header "Expect:100-continue"?

Can you send me some URLs to test against via the private message message facility of this forum?

Thanks,

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.