limit-rate.md (1205B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: limit-rate 5 Arg: <speed> 6 Help: Limit transfer speed to RATE 7 Category: connection 8 Added: 7.10 9 Multi: single 10 See-also: 11 - rate 12 - speed-limit 13 - speed-time 14 Example: 15 - --limit-rate 100K $URL 16 - --limit-rate 1000 $URL 17 - --limit-rate 10M $URL 18 --- 19 20 # `--limit-rate` 21 22 Specify the maximum transfer rate you want curl to use - for both downloads 23 and uploads. This feature is useful if you have a limited pipe and you would 24 like your transfer not to use your entire bandwidth. To make it slower than it 25 otherwise would be. 26 27 The given speed is measured in bytes/second, unless a suffix is appended. 28 Appending 'k' or 'K' counts the number as kilobytes, 'm' or 'M' makes it 29 megabytes, while 'g' or 'G' makes it gigabytes. The suffixes (k, M, G, T, P) 30 are 1024 based. For example 1k is 1024. Examples: 200K, 3m and 1G. 31 32 The rate limiting logic works on averaging the transfer speed to no more than 33 the set threshold over a period of multiple seconds. 34 35 If you also use the --speed-limit option, that option takes precedence and 36 might cripple the rate-limiting slightly, to help keep the speed-limit 37 logic working.