0

I was trying to setup a web server with Arduino and ESP32, without using the ESP32 libraries.
Currently I'm able to display a webpage(a form with single submit button) from the server, with only using AT commands.

But how can I receive GET/POST requests send buy the form fields?

In the WebServer.h library this is done by the method

    server.on("/actionPage", HTTP_GET, []() {
        server.sendHeader("Connection", "close");
        server.send(200, "text/html", "This is actionPage");
    })

I was wondering if there is a way to do this without libraries, I searched a lot, but didn't found a solution for this..

Thanks in advance!

  • 1
    Why, in gods name, would you choose to cripple an ESP32 with AT commands? You are currently using a Fiat Panda to tow a Lamborghini, in which you have placed a toddler to control it. Crazy, man... – Majenko Sep 16 at 22:05
  • @Majenko, it may be crazy, but is it doable? – jsotola Sep 16 at 22:09
  • 1
    Sure, it's doable. You just need to send the right AT commands to perform the task you need to do. Personally I wouldn't, but you do you m8. – Majenko Sep 16 at 22:21
  • @Majenko, I was just studying how the AT commands are used to configure a web server, and there are a lot of examples are available showing how to send GET/POST request from a local server to the ESP, But didn't found one regarding how to receive GET/POST request from a client!! – Sumithran Sep 17 at 13:21
  • 1
    Until you raised the question, I didn't even know there was AT firmware for the ESP32. I have no idea how they chose to implement it. What does the manual for the AT firmware say? – Majenko Sep 17 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.