Created
March 22, 2012 15:38
-
-
Save pete911/2159077 to your computer and use it in GitHub Desktop.
get http response code
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
# -s = silent, -w = write out format, -o = output file | |
curl -s -w %{http_code} http://www.google.co.uk/ -o /dev/nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment