curl: add long option '--out-null'

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
This commit is contained in:
Stefan Eissing 2025-07-02 09:43:13 +02:00 committed by Daniel Stenberg
parent 0e49234128
commit 6845533e24
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
13 changed files with 137 additions and 6 deletions

View file

@ -167,6 +167,7 @@ typedef enum {
C_NTLM,
C_NTLM_WB,
C_OAUTH2_BEARER,
C_OUT_NULL,
C_OUTPUT,
C_OUTPUT_DIR,
C_PARALLEL,