Skip to content

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

@alepiva

Description

@alepiva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions