Print response headers with the response body.
Section: Basics and Output
Include response headers
bash
bash
curl -i https://example.comExplanation
`-i` includes response headers in the output stream.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics and Output
Fetch headers only
Send a HEAD request to inspect headers without downloading the body.
Save using remote filename
Download and save using the server-provided path basename.