docs: add a note about --compressed to note about binary output

Closes #20168
This commit is contained in:
Tobias Zimmermann 2026-01-02 18:12:03 +01:00 committed by Daniel Stenberg
parent 5ef7fa39d5
commit 09374f6e75
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -13,6 +13,7 @@ See-also:
- remote-name
- remote-name-all
- remote-header-name
- compressed
Example:
- -o file $URL
- "http://{one,two}.example.com" -o "file_#1.txt"
@ -65,3 +66,6 @@ Specify the filename as single minus to force the output to stdout, to
override curl's internal binary output in terminal prevention:
curl https://example.com/jpeg -o -
Note that the binary output may be caused by the response being compressed, in
which case you may want to use the --compressed option.