Skip to content

Instantly share code, notes, and snippets.

@pete911
Created March 22, 2012 15:38
Show Gist options
  • Save pete911/2159077 to your computer and use it in GitHub Desktop.
Save pete911/2159077 to your computer and use it in GitHub Desktop.
get http response code
# -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