HTTP · Inspect requests with curl
Print only the status code
Discard the body and print the HTTP status.
curl -s -o /dev/null -w "%{http_code}\n" https://example.com
HTTP · Inspect requests with curl
Discard the body and print the HTTP status.
curl -s -o /dev/null -w "%{http_code}\n" https://example.com
Was this page helpful?