Skip to content

Instantly share code, notes, and snippets.

@Bonno
Last active February 5, 2018 10:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bonno/32ebce5fa40457025928 to your computer and use it in GitHub Desktop.
Save Bonno/32ebce5fa40457025928 to your computer and use it in GitHub Desktop.
View webserver response headers
curl -sSL -o /dev/null -D - http://domain.com
-S, --show-error Show an error message if it fails
-L/--location If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response
code), this option will make curl redo the request on the new place.
-o, --output FILE Write output to <file> instead of stdout
-D, --dump-header FILE Write the headers to this file
curl -v -o - -D - http://domain.com
-v, --verbose Make the operation more talkative
-o, --output FILE Write output to <file> instead of stdout
-D, --dump-header FILE Write the headers to this file
wget -S -O - -T 5 -t 1 --spider http://domain.com
-S, --server-response print server response.
-O, --output-document=FILE write documents to FILE.
-T, --timeout=SECONDS set all timeout values to SECONDS.
-t, --tries=NUMBER set number of retries to NUMBER (0 unlimits).
--spider don't download anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment