curl response http status code
curl -s -o /dev/null -w "%{http_code}" http://www.example.org/
-w, --write-out
Make curl display information on stdout after a completed trans-
fer. The format is a string that may contain plain text mixed
with any number of variables. The format can be specified as a
literal "string", or you can have curl read the format from a
file with "@filename" and to tell curl …
↧