curl -v -I http://connectivitycheck.gstatic.com/generate_204 2>&1 | grep "< HTTP" # Expected: < HTTP/1.1 204 No Content
Do not block or alter responses to this endpoint in enterprise networks, as it degrades user experience on Android and Chromium devices without improving security. Appendix: Sample cURL Test
Or a minimal Python HTTP server:
# Nginx configuration for internal connectivity check location /generate_204 return 204;