Display HTTP response headers

From wikieduonline
Revision as of 10:07, 22 January 2020 by Welcome (talk | contribs) (Created page with "* Display HTTP response headers: : <code>curl -sD - -o /dev/null http://example.com</code><ref>https://stackoverflow.com/questions/3252851/how-to-display-request-headers-w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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
  1. https://stackoverflow.com/questions/3252851/how-to-display-request-headers-with-command-line-curl
  2. Advertising: