diff options
author | Barry Pollard <barry_pollard@hotmail.com> | 2021-08-12 13:26:36 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-08-12 14:47:33 +0200 |
commit | 2cd1dbc72c39ba77974d399f9e2fe129715fe4d0 (patch) | |
tree | c1af1e333030d523b6c5bec20c9ff9b41beb7440 /docs | |
parent | f519bf0d9a58854a7faab3f38f9f48216bae78c0 (diff) | |
download | curl-2cd1dbc72c39ba77974d399f9e2fe129715fe4d0.tar.gz |
output.d: add method to suppress response bodies
Closes #7560
Diffstat (limited to 'docs')
-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 |