--out-null is #curl's 270th command line option.
Discard all response output of a transfer silently. This is the more efficient
and portable version of
curl host.example -o /dev/null
The transfer is done in full, all data is received and checked, but the bytes are not written anywhere. --out-null is associated with a single URL. Use it once per URL when you use several URLs in a command line.
Joshix
in reply to daniel:// stenberg:// • • •davidb2111
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
Unknown parent • • •Aslak Raanes
in reply to daniel:// stenberg:// • • •There might be better ways to do this, but I often use it when dumping headers from a request.
curl -D - -sLo /dev/null example.com/
Example Domain
example.comJames O'Gorman
in reply to daniel:// stenberg:// • • •