Last active
December 19, 2015 16:18
-
-
Save tit/5982872 to your computer and use it in GitHub Desktop.
A quick way to get HTTP status
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 -I http://example.com 2> /dev/null | grep HTTP | egrep -o [0-9]{3} | |
curl -w "%{http_code}" http://example.com 2> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment