Skip to content

Document lack of method to stop uncompressed downloads #7516

Closed
@jidanni

Description

@jidanni

Man page says

   --compressed
          (HTTP) Request a compressed response using one of the algorithms
          curl supports, and automatically decompress the content. Headers
          are not modified.

          If  this  option is used and the server sends an unsupported en‐
          coding, curl will report an error.

Well I did

curl --verbose --compressed --remote-name https://www.ncc.gov.tw/chinese/files/opendata/radio.csv

and --compressed got ignored, but no error was reported.

So maybe the man page should say:

This is a request,
not an order; the server may or may not do it.

like it does elsewhere.

I.e.,

          If  this  option is used and the server sends an unsupported en‐
          coding, curl will report an error.

Add: But no encoding is not an error.
I.e., better have a bigger disk ready, as curl gives you no way of stopping uncompressed downloads.

curl 7.74.0 (x86_64-pc-linux-gnu)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions