Last active
February 5, 2018 10:44
-
-
Save Bonno/32ebce5fa40457025928 to your computer and use it in GitHub Desktop.
View webserver response headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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