Skip to content

Commit

Permalink
usingcurl/transfers/request-rate.md: document the 8.10 --rate extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Aug 8, 2024
1 parent a90d1d0 commit 97e67a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions usingcurl/transfers/request-rate.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,16 @@ Make curl download 10 images but doing it no faster than 3 transfers per hour:
Make curl download 200 images but not faster than 14 transfers per minute:

curl --rate 14/m -O https://example.com/[1-200].jpg

## Number of units

Starting in curl 8.10.0 this option accepts an optional *number of units*. The
request rate is then provided as **N/ZU** where **N** is an integer number,
**Z** is an integer number of time units and **U** is a time unit.

The number and the units are the same as mentioned above, but now you can also
specify a number of time units.

For example, make no more than eight transfers every five seconds:

curl --rate 8/5s -O https://example.com/[1-100].jpg

0 comments on commit 97e67a0

Please sign in to comment.