2
0

max-filesize.d 740 B

12345678910111213141516171819
  1. Long: max-filesize
  2. Arg: <bytes>
  3. Help: Maximum file size to download
  4. Protocols: FTP HTTP MQTT
  5. See-also: limit-rate
  6. Category: connection
  7. Example: --max-filesize 100K $URL
  8. ---
  9. Specify the maximum size (in bytes) of a file to download. If the file
  10. requested is larger than this value, the transfer will not start and curl will
  11. return with exit code 63.
  12. A size modifier may be used. For example, Appending 'k' or 'K' will count the
  13. number as kilobytes, 'm' or 'M' makes it megabytes, while 'g' or 'G' makes it
  14. gigabytes. Examples: 200K, 3m and 1G. (Added in 7.58.0)
  15. **NOTE**: The file size is not always known prior to download, and for such
  16. files this option has no effect even if the file transfer ends up being larger
  17. than this given limit.