ESP32 webserver.h post a form

toogooda
Posts: 3
Joined: Mon Dec 10, 2018 6:05 am

ESP32 webserver.h post a form

Postby toogooda » Sun Jun 28, 2020 10:03 am

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?

https://techtutorialsx.com/2018/02/03/e ... s-allowed/

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

Who is online

Users browsing this forum: No registered users and 67 guests