[Shell command] Show response headers with curl

Created on November 30, 2026

You can use curl --include or curl -i to print the HTTP response headers before the response body.

curl --include https://documentroot.org

For an HTML response, you might see output like this:

HTTP/2 200
content-type: text/html

<html>
...

The blank line separates the headers from the body.

Reference

Shell command curl