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: 
anode505
Streaming Star

Apil 7 update bug POST

I got updated over night, and the http/POST scripts won't run anymore.
Port 8060 is still open
I get a 404 bad request.

semi cleaned up:

echo -e 'POST /keypress/Enter HTTP/1.1

' | nc " 192.168.1.199 " 8060 HTTP/1.1 200 OK Content-Length: 0" as string
0 Kudos
3 REPLIES 3
RokuKC
Roku Employee
Roku Employee

Re: Apil 7 update bug POST

I suspect the server is requiring CR-LF line endings now, instead of accepting LF-only line endings.

You might try using \r\n\r\n at the end instead of using an embedded newline constant.
0 Kudos
RokuKC
Roku Employee
Roku Employee

Re: Apil 7 update bug POST

Yes, that appears to be the problem.

This should work:
printf "POST /keypress/Enter HTTP/1.1\r\n\r\n"' | nc " 192.168.1.199 " 8060
0 Kudos
anode505
Streaming Star

Re: Apil 7 update bug POST

Thanks!

Skinned the cat a different wat.
Used the curl method. Alls working again.
0 Kudos