Fetch only the HTTP response headers
Build a paste-ready command, then review its compatibility and effects before running it.
curl -I https://example.comCompatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementscurlcurl must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportcurl Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsHTTP/2 200Representative successful output; values vary with the selected target and system state.
Known errorscurl: command not foundcurl is missing or is not available on PATH.
Verifycurl -I {{url}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01curlURL transfer toolSends a request to the supplied URL.
02-IHeaders onlyFetches the response headers without downloading the response body.
03https://example.comTarget URLReplace this example with the endpoint you want to inspect.
Example input
curl -I https://example.com
Example output
HTTP/2 200
content-type: text/html
cache-control: max-age=86000
content-length: 1256
Illustrative output — exact values vary by system and data.
Runbooks
Official sources