IoT_demo - TCP post request when arrive is split in two parts
alepiva opened this issue · 0 comments
alepiva commented
Hi, i'm testing IoT_demo and it works well even if I've discovered that with some devices or browser (like Safari) the TCP packet of POST is splitted in two parts, so the ESP doesn't parse it correctly.
Here the wrong one with 2 call of function webserver_recv
the content of the first "pusrdata" is
POST /config?command=wifi HTTP/1.1
Content-Type: application/json
Content-Length: 150
User-Agent: PostmanRuntime/3.0.11-hotfix.2
Accept: */*
Host: 192.168.4.1
accept-encoding: gzip, deflate
Connection: keep-alive
the second "pusrdata" content is:
{"Request":{"Station":{"Connect_Station":{"ssid":"XXXXXXX", "password":"XXXXXXXX", "token":"XXXXX"}}}}