Page 1 of 1

ESP32 webserver.h post a form

Posted: Sun Jun 28, 2020 10:03 am
by toogooda
I have a basic requirement to post some text fields and use the values. I found good examples for ASPwebserver but cannot seem to find an example for webserver.h.
Is it a limitation of this library or can anyone point me to an example.
Look for the Server.on statement to handle a form post and see how to extract the values etc.

the example given for ESPAsyncWebServer.h is
server.on("/post", HTTP_POST, [](AsyncWebServerRequest *request){
request->send(200, "text/plain", "Post route");

Can anyone point me in the right direction? ... s-allowed/

Note: I have done lots of work already using the library so hoping I don't need to change now :(