Print only the HTTP status code
Requests the URL and prints just the HTTP status code it returns, discarding the body.
curl -s -o /dev/null -w '%{http_code}\n' https://example.comEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)