Skip to content

Instantly share code, notes, and snippets.

@jpablobr
Created January 27, 2012 00:23
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 jpablobr/1686100 to your computer and use it in GitHub Desktop.
Save jpablobr/1686100 to your computer and use it in GitHub Desktop.
curl for http status
#!/bin/sh
curl -sL -w "%{http_code}\\n" "http://website.com" -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment