esp8266-devkit icon indicating copy to clipboard operation
esp8266-devkit copied to clipboard

IoT_demo - TCP post request when arrive is split in two parts

Open alepiva opened this issue 8 years ago • 0 comments

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"}}}}

alepiva avatar Apr 26 '17 19:04 alepiva