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.
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.