-
Notifications
You must be signed in to change notification settings - Fork 13.3k
HTTP_POST request #2129
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
Comments
Could you give an example of request you are sending, what are the headers and payload? |
I report the bug in #2131. I am sending by HTTP_POST request:
with payload
Source message
The error i think is that in "Parsing.cpp" (line 164) compare else if (headerName == "Content-Length" and headerName in this case is content-length |
Currently ESP8266WebServer will parse POST request body in three cases:
So even with #2131 fixed your request body will not be parsed into arguments array. |
I think that with #2131 fixed solve it will work fine, because i change case sensitive compare and work for the next example: HTTP_POST request HTTP_POST Header
In the ESP8266 Server side, I parse the request, and return the date payload in Json, and work fine.
|
Ah, like that. I haven't figured out that |
I cannot get anything on the |
Hello!
I am new in esp8266. I am traing to use this library to send from server HTTP_POST request to esp8266, but i cant read parameters(i only can read if i send parameters into url). How can i read parameters from HTTP_POST (parameter in body http request)?
Tanks in advance!
The text was updated successfully, but these errors were encountered: