[curl] Check the HTTP status from the response headers

Created on November 30, 2026

Use -I to send a HEAD request and display the response headers. The first line contains the HTTP status.

curl -I http://example.com
Shell command