Normally when we working with IOT we have to connect to coperate WIFI networks or university WIFI networks Most of them servers a captive portal for logging . This Code Demonstrate how to give user credentials and get internet access to your ESP8266.