Skip to content

Commit

Permalink
output.d: add method to suppress response bodies
Browse files Browse the repository at this point in the history
Closes #7560
  • Loading branch information
tunetheweb authored and bagder committed Aug 12, 2021
1 parent f519bf0 commit 2cd1dbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/cmdline-opts/output.d
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2cd1dbc

Please sign in to comment.