same as on phone. first you connect to the WiFi network without password. then you send a https request with credentials