From 2cd1dbc72c39ba77974d399f9e2fe129715fe4d0 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Thu, 12 Aug 2021 13:26:36 +0100 Subject: [PATCH] output.d: add method to suppress response bodies Closes #7560 --- docs/cmdline-opts/output.d | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/cmdline-opts/output.d b/docs/cmdline-opts/output.d index bf35bf4a09..d639a23512 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