Skip to content

Instantly share code, notes, and snippets.

@pgilad
Created October 27, 2014 13:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgilad/7a8be4ed30593f245f5f to your computer and use it in GitHub Desktop.
Save pgilad/7a8be4ed30593f245f5f to your computer and use it in GitHub Desktop.
Curl and get only response code
curl -sL -w "%{http_code}" "http://somesite.com" -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment