diff options
-rw-r--r-- | docs/cmdline-opts/output.d | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/cmdline-opts/output.d b/docs/cmdline-opts/output.d index bf35bf4a0..d639a2351 100644 --- a/docs/cmdline-opts/output.d +++ b/docs/cmdline-opts/output.d @@ -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 |