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: 
anode505
Level 8

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

Re: Apil 7 update bug POST

Thanks!

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