ESP8266 LOG in to website

Hello everyone

Was wondering whether it is possible to use the ESP8266 to enter Log In details for a website.

Essentially, what I am asking is if there is a way to log in to a generic log in page using the ESP8266’s wifi capability

Below I have included what the generic log in screen looks like

Ryan

rsz_1sign_in.jpg

This is an HTML form. You need to send the login credentials via HTTP-POST and the server sends back a cookie with the session id. For further requests to the website you need to send the cookie and it should work.

It is HTTP Authentication.
You can use it via headers, and also... You can check if user is logged in via his cookie that you can set to him (with time aswell) after login.

Rintin:
This is an HTML form. You need to send the login credentials via HTTP-POST and the server sends back a cookie with the session id. For further requests to the website, you need to send the cookie and it should work.

Thanks for the response, after finding of the HTTP Post command I searched it and came across this Wikipedia page, it explains it all

But for me to explain,

  1. You take the url (eg http://test.org/ultimatetest)
  2. Then add the username and password before the host like this
    http://username:password@test.org/ultimatetest

replace the username and password with you know, your username and password

the colon and @ is required

Hope this helps someone else!

Ryan