ignore-content-length.d 664 B

12345678910111213141516171819
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: ignore-content-length
  4. Help: Ignore the size of the remote resource
  5. Protocols: FTP HTTP
  6. Category: http ftp
  7. Example: --ignore-content-length $URL
  8. Added: 7.14.1
  9. See-also: ftp-skip-pasv-ip
  10. Multi: boolean
  11. ---
  12. For HTTP, Ignore the Content-Length header. This is particularly useful for
  13. servers running Apache 1.x, which reports incorrect Content-Length for
  14. files larger than 2 gigabytes.
  15. For FTP, this makes curl skip the SIZE command to figure out the size before
  16. downloading a file (added in 7.46.0).
  17. This option does not work for HTTP if libcurl was built to use hyper.