Difference between revisions of "Display HTTP response headers"

From wikieduonline
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
* [[Display HTTP response headers]]:
+
* 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-with-command-line-curl</ref>
 
: <code>curl -sD - -o /dev/null http://example.com</code><ref>https://stackoverflow.com/questions/3252851/how-to-display-request-headers-with-command-line-curl</ref>
 
:: -s  Avoid showing progress bar
 
:: -s  Avoid showing progress bar
 
:: -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

Revision as of 10:07, 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
  1. https://stackoverflow.com/questions/3252851/how-to-display-request-headers-with-command-line-curl
  2. Advertising: