Skip to content

Instantly share code, notes, and snippets.

@tit
Last active December 19, 2015 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tit/5982872 to your computer and use it in GitHub Desktop.
Save tit/5982872 to your computer and use it in GitHub Desktop.
A quick way to get HTTP status
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