-
I'm using an nRF52840dk and proved that I can successfully send TCP messages (ex. "test123" or "test\ with\ spaces") to an nRF52840dongle on the same OpenThread network. I'm now attempting to send a HTTP GET request via the CLI tool with TCP enabled. I can ping 74.125.142.104 as seen here
However, I'm having trouble with the syntax for a multi-line HTTP GET request via the CLI tool.
Am I doing this incorrectly or is the CLI tool not designed for this type of multi line use case? EDIT: Reformatted code snippets |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would suggest taking a look at the wireshark trace. I believe the TCP stream is not sending the exact bytes that you are expecting and the HTTP server is responding with "Bad Request". In particular, OpenThread's current command line parser implementation does not transform escaped characters like |
Beta Was this translation helpful? Give feedback.
I would suggest taking a look at the wireshark trace. I believe the TCP stream is not sending the exact bytes that you are expecting and the HTTP server is responding with "Bad Request".
In particular, OpenThread's current command line parser implementation does not transform escaped characters like
\r
and\n
into the appropriate ASCII characters.