]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
output.d: add method to suppress response bodies
authorBarry Pollard <barry_pollard@hotmail.com>
Thu, 12 Aug 2021 12:26:36 +0000 (13:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Aug 2021 12:47:33 +0000 (14:47 +0200)
Closes #7560

docs/cmdline-opts/output.d

index bf35bf4a09e31de93d9b81b0c3e8338449a985e7..d639a235123334f426b0f65265fa42b514cb9721 100644 (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