mirror of
https://github.com/curl/curl.git
synced 2026-04-12 12:21:42 +08:00
Add a new commandline option --out-null that discards all response bytes into the void. Replaces non-portable use of '-o /dev/null' with more efficiency. Feature added in 8.16.0 Closes #17800
595 B
595 B
c: Copyright (C) Daniel Stenberg, daniel@haxx.se, et al.
SPDX-License-Identifier: curl
Long: out-null
Help: Discard response data into the void
Category: output
Added: 8.16.0
Multi: per-URL
See-also:
- output
- remote-name
- remote-name-all
- remote-header-name
Example:
- "https://example.com" --out-null
--out-null
Discard all response output of a transfer silently. This is the more efficient and portable version of
curl https://host.example -o /dev/null
The transfer is done in full, all data is received and checked, but the bytes are not written anywhere.