output.d: add method to suppress response bodies

Closes #7560
This commit is contained in:
Barry Pollard 2021-08-12 13:26:36 +01:00 committed by Daniel Stenberg
parent f519bf0d9a
commit 2cd1dbc72c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -31,3 +31,11 @@ written as
See also the --create-dirs option to create the local directories
dynamically. Specifying the output as '-' (a single dash) will force the
output to be done to stdout.
To suppress response bodies, you can redirect output to /dev/null:
curl example.com -o /dev/null
Or for Windows use nul:
curl example.com -o nul