Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alepiva opened this issue Apr 26, 2017 · 0 comments
Open

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

alepiva opened this issue Apr 26, 2017 · 0 comments

Comments

@alepiva
Copy link

alepiva commented Apr 26, 2017

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"}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant