esp32-iot-examples icon indicating copy to clipboard operation
esp32-iot-examples copied to clipboard

WiFi Portal with POST request

Open rautmithil opened this issue 7 years ago • 0 comments

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>");

rautmithil avatar Oct 25 '17 13:10 rautmithil