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

More files and output commands

All files and output commands · curl and jq 8 cheatsheet

Was this page helpful?