Check a URL's status code without downloading the body:
curl -s -o /dev/null -w "%{http_code}\n" https://example.com-o /dev/null throws away the response, and -w prints only the format you ask for. It's handy for health checks in a loop.commit f0105c0