summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/ignore-content-length.d
blob: 8a4c24754a44cf801f693868e86627c1d12099b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Long: ignore-content-length
Help: Ignore the size of the remote resource
Protocols: FTP HTTP
Category: http ftp
Example: --ignore-content-length $URL
---
For HTTP, Ignore the Content-Length header. This is particularly useful for
servers running Apache 1.x, which will report incorrect Content-Length for
files larger than 2 gigabytes.

For FTP (since 7.46.0), skip the RETR command to figure out the size before
downloading a file.

This option doesn't work for HTTP if libcurl was built to use hyper.