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

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
Roku Employee
Roku Employee

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

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

Hi

We are seeing it with the roURLTransfer requests.

Thanks
0 Kudos
Roku Employee
Roku Employee

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

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

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

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

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

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

Any update on this?

Thanks
0 Kudos
Roku Employee
Roku Employee

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