Difference between revisions of "Display HTTP response headers"

From wikieduonline
Jump to navigation Jump to search
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
 +
 +
 +
== Related terms ==
 +
* x-content-type-options
  
  
 
== See also ==
 
== See also ==
 
* {{wget}}
 
* {{wget}}

Revision as of 04:30, 1 July 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


Related terms

  • x-content-type-options


See also

  • https://stackoverflow.com/questions/3252851/how-to-display-request-headers-with-command-line-curl
  • Advertising: