-->
Page 1 of 1

How to request a page and submit a form?

PostPosted: Fri Sep 04, 2015 4:24 am
by Silux
I often use a free wifi which requires username and password to navigate.
When I get an IP address from the access point it prompts me with a login page, and I must submit this form to continue.
There is a way with the ESP8266 to submit username and password with a POST message?

Here is the code of the form
Code: Select all<form class='form' method='post' action='https://gw.edisu-piemonte.it:8001/' >
    <input name='redirurl' type='hidden' value='http://www.google.com/' />
   <p>   <input name='auth_user' type='text' id='auth_user' autocapitalize="off" />
   <label for='auth_user'>Username</label> </p>
    <p>   <input name='auth_pass' type='password' id='auth_pass' />
   <label for='auth_pass'>Password</label> </p>
   <p class='submit'><input type='submit' name="accept" value='Login' /></p>
  </form>