curl --compressed https://example.com

Category: Web App Development

curl --compressed https://example.com

Request a gzip or brotli compressed response

Asks the server for a compressed response and decompresses it automatically, saving bandwidth on large pages. curl advertises the encodings it supports in the Accept-Encoding header. Without this flag many servers send uncompressed content.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.