When the device tries to connect to an access point or router, it has to sign in on the captive portal page with the message saying
"Sign in to Wi-Fi network".
How does the access point/router identify that a sign in is required for the device and what is the process behind it?
http://connectivitycheck.gstatic.com/generate_204
actually returns a 204 with no content, and obviously works. Maybe you just left out theContent-Length: 0
header. – Tamir Daniely Jun 17 '18 at 06:22