-->
Page 1 of 1

Receive Post Data Error

PostPosted: Wed Nov 08, 2017 4:09 am
by Face Time
I am trying to send a post data from network to the esp8266-01. I don't have problem when posting post data, but when I try to receive a post data, even with very little data, the data received seems not completed and even weird characters.

Here is what I post from the network to esp8266-01 using postman:
Code: Select allPOST  HTTP/1.1
Host: 192.168.1.11:28000
Cache-Control: no-cache
Postman-Token: 8fc9aa4e-afff-ee04-f75e-1a56e17b003f
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="msg"

hello
------WebKitFormBoundary7MA4YWxkTrZu0gW--


And this is what I got:
Code: Select all+IPD,0,506:POST / HTTP/1.1
cache-control: no-cache
Postman-Token: 56859fbb-6f11-4617-99c5-b03ebf572171
User-Agent: PostmanRuntime/6.4.1
Accept: */*
Host: 192.168.1.11:28000
accept-encoding: gzip, deflate
content-type: multipart/form-data; boundary=---------------0895299552781
otn-egh 6
Cneto:ke-lv

--------------723184315278
CnetDsoiin omdt;nm=ms"

el
--------------0893184315381-
0,CLOSED


The first few characters seems correct to me, but the body which is in the last characters it is not received well. What's wrong with this? Is it out of memory problem or else?

Re: Receive Post Data Error

PostPosted: Fri Nov 10, 2017 5:41 pm
by tele_player
Looks like serial line is corrupted. Have you tried lower baudrate?