-
Notifications
You must be signed in to change notification settings - Fork 13.3k
POST Request from web page #3211
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
You need to attach a POST method handler to the directory of where you are submitting the POST request. server.on(/, "POST", processPostData()); <---This will handle post requests submitted to / or "root") The POST handling method should then iterate through the POST requests arguments and be processed in what ever way you see fit. The names and values of the POST requests elements can be accessed with server.argName() and server.arg(). The total number of post argument that have been received is available through server.args() (a return value is given) (Note the bellow example I have written is untested and uncomplied)
Hope this helps. |
Thank you!
There is a problem in the source library (file Parsing.cpp) is case-sensitive. |
How are you sending the POST request? Could you post a code/webpage snippet? |
I do this on nodejs + preact
|
Are you planning to remove this bug from the library Parsing.cpp and make case-insensitive headers? |
I think case-insensitive parsing was implemented in this PR: #2131 You can try using the master branch to see if it resolves the issue. |
Thank you! |
Could you clarify what you mean? The fix for the issue has already been merged into the master branch. When the next stable package is released, the fix is going to be included. |
I meant all the HTTP headers, not just the Content-Type. |
Yes the PR mentioned above fixed parsing of other headers as well, not just the Content-Type: |
Hello everyone!
Web-Server esp8266 is work on this core.
I am send the POST requests /dev.sc-write from the web page (esp8266)
How can I take useful information from a query? (Sending Not a File)
The text was updated successfully, but these errors were encountered: