curl and jq 8 · Files and output
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
Official curl and jq 8 documentation
curl and jq 8 · Files and output
Discard the body and print the HTTP status.
curl -s -o /dev/null -w "%{http_code}\n" https://example.com
Official curl and jq 8 documentation
Was this page helpful?