esp32-iot-examples
esp32-iot-examples copied to clipboard
WiFi Portal with POST request
WiFi credentials are exposed in the URL when sending with a GET request in softAP mode. I tried to use post method for the same however I can only read the header of the request. Do you know of a way to get the body of post method? The client connection gets closed after receiving the header.
Code:
client.print("<form METHOD='POST' action='/a'><label>SSID: " "</label><input name='ssid' length=32><label>Password: </label><input name='pass'" "length=64 type='password'><input type='submit' name= 'Submit'></form>");