Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Created October 30, 2015 15:05
Show Gist options
  • Select an option

  • Save franciscocpg/4ad887f6b14c346a8921 to your computer and use it in GitHub Desktop.

Select an option

Save franciscocpg/4ad887f6b14c346a8921 to your computer and use it in GitHub Desktop.

curl -s -X GET -o /dev/null -I -w "%{http_code}" http://www.google.com.br

Take a look at http://curl.haxx.se/docs/manpage.html, at the parameter -w, --write-out for a list of available variables to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment