@Kamal and others, healthchecks site isn't a reliable way of checking this. I believe they have some kind of WAF filter to prevent the site from being abused, so it would always show DOWN on their end.
this is what i use in curl, it should return HTTP header: x-networkmanager-status: online $ curl connectivity-check.ubuntu.com -v * Host connectivity-check.ubuntu.com:80 was resolved. * IPv6: 2620:2d:4002:1::198, 2620:2d:4000:1::1101, 2620:2d:4000:1::1099, 2620:2d:4000:1::1100, 2620:2d:4002:1::196, 2620:2d:4002:1::197 * IPv4: 185.125.190.100, 91.189.91.97, 91.189.91.96, 185.125.190.99, 91.189.91.98, 185.125.190.101 * Trying [2620:2d:4002:1::198]:80... * Trying 185.125.190.100:80... * Connected to connectivity-check.ubuntu.com (2620:2d:4002:1::198) port 80 > GET / HTTP/1.1 > Host: connectivity-check.ubuntu.com > User-Agent: curl/8.5.0 > Accept: */* > < HTTP/1.1 204 No Content < x-networkmanager-status: online < * Connection #0 to host connectivity-check.ubuntu.com left intact -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2145093 Title: http://connectivity-check.ubuntu.com/ is down, 503 error, causing limited connectivity error to appear on my desktop even though I'm clearly online. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2145093/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
