Forum Discussion

anode505's avatar
anode505
Streaming Star
11 years ago

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

3 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee
    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.
  • RokuKC's avatar
    RokuKC
    Roku Employee
    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
  • anode505's avatar
    anode505
    Streaming Star
    Thanks!

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