ignore-content-length.d 647 B

123456789101112131415161718
  1. c: Copyright (C) 1998 - 2022, 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. ---
  11. For HTTP, Ignore the Content-Length header. This is particularly useful for
  12. servers running Apache 1.x, which will report incorrect Content-Length for
  13. files larger than 2 gigabytes.
  14. For FTP (since 7.46.0), skip the RETR command to figure out the size before
  15. downloading a file.
  16. This option does not work for HTTP if libcurl was built to use hyper.