2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Long: compressed
|
|
|
|
Help: Request compressed response
|
|
|
|
Protocols: HTTP
|
|
|
|
Category: http
|
|
|
|
Added: 7.10
|
|
|
|
Multi: boolean
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- compressed-ssh
|
|
|
|
Example:
|
|
|
|
- --compressed $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--compressed`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Request a compressed response using one of the algorithms curl supports, and
|
|
|
|
automatically decompress the content.
|
|
|
|
|
|
|
|
Response headers are not modified when saved, so if they are "interpreted"
|
|
|
|
separately again at a later point they might appear to be saying that the
|
|
|
|
content is (still) compressed; while in fact it has already been decompressed.
|
|
|
|
|
|
|
|
If this option is used and the server sends an unsupported encoding, curl
|
|
|
|
reports an error. This is a request, not an order; the server may or may not
|
|
|
|
deliver data compressed.
|