The problem is trying to get those CR/LFs into an echo command. I tried a few things without much luck. The easiest thing to do is to put the POST into a text file and then redirect it into netcat. The text file would look like:
POST /launch/dev HTTP/1.1
Note that there is a blank line after the POST line. Then you redirect that file (I called it launch.txt) into netcat:
nc 192.168.0.71 8060 < launch.txt
If you work from the command line in Windows a lot you may want to do yourself a favor and look into
Take Command. The
free light version, TCC/LE, is probably all you'd ever need and is a vast improvement over cmd.exe.
With TCC/LE the command would look like:
echo POST /launch/dev HTTP/1.1%=r%=n | nc 192.168.0.71 8060
Hope this helps!
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.