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