Good evening everyone.
Using the TCPin node, I created a Web-server for a device that is a Web-client.
The Web-server listens on port 50001.
The Web-client documentation says that it should send a request like:
{
"type":"Z5R",
"messages":
[{
"id":1234567890,
"operation":"power_on"
}]
}
and the Web-server should respond to it:
{
"date":"2022-11-02 12:00:00",
" messages":
[{
"id":0123456789,
"operation":"set_active"
]}
}
But something else comes to TCPin:
{
"payload": "POST / HTTP/1.1\r\nHost: 192.168.11.123:50001\r\nAccept: */*\r\nUser-Agent: Z5R WEB\r\nConection: close\r\nContent-type: application/json\r\nContent-Length: 197\r\n\r\n{\"type\":\"Z5R\",\"messages\":[{\"id\":1681692777,\"operation\":\"power_on\"}]}",
"ip": "::ffff:192.168.11.134",
"port": 59708,
"_session": {
"type": "tcp",
"id": "fb857367.081b8"
},
"_msgid": "ecae1f3.13a8fe"
}
And now the questions:
- Why does such content come - is it the wrong behavior of the Web-client?
- What kind of load should the Web-server send with such a request?