Difference between revisions of "Display HTTP response headers"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/questions/3252851/how-to-display-request-headers-with-command-line-curl
Line 4: | Line 4: | ||
:: -D Dump headers to a file, but - sends it to stdout | :: -D Dump headers to a file, but - sends it to stdout | ||
:: -o /dev/null Ignore response body | :: -o /dev/null Ignore response body | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{curl}} |
Revision as of 10:09, 22 January 2020
- Display HTTP response headers:
curl -sD - -o /dev/null http://example.com
[1]- -s Avoid showing progress bar
- -D Dump headers to a file, but - sends it to stdout
- -o /dev/null Ignore response body
See also
- cURL,
curl -s
,-X, -x
,curl -T
,curl --help
,curl -L
,curl -o
,curl -X POST
,curl -d
,curl --header
,curl -I
,curl --silent
,curl -Is
,curl -k or curl --insecure, curl -XPUT, curl -d
,~/.curlrc, curl -i, curl --version, curl --help
Advertising: