CHERTS / esp8266-devkit

Unofficial Development Kit for Espressif ESP8266
http://www.programs74.ru
GNU General Public License v3.0
261 stars 102 forks source link

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

Open alepiva opened 7 years ago

alepiva commented 7 years ago

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