xref: /curl/docs/cmdline-opts/compressed.md (revision 2494b8dd)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: compressed
5Help: Request compressed response
6Protocols: HTTP
7Category: http
8Added: 7.10
9Multi: boolean
10See-also:
11  - compressed-ssh
12Example:
13  - --compressed $URL
14---
15
16# `--compressed`
17
18Request a compressed response using one of the algorithms curl supports, and
19automatically decompress the content.
20
21Response headers are not modified when saved, so if they are "interpreted"
22separately again at a later point they might appear to be saying that the
23content is (still) compressed; while in fact it has already been decompressed.
24
25If this option is used and the server sends an unsupported encoding, curl
26reports an error. This is a request, not an order; the server may or may not
27deliver data compressed.
28