Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usingcurl/transfers/request-rate.md: document the 8.10 --rate extension #507

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions usingcurl/transfers/request-rate.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ 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** / **Z** **U** (with no spaces) where
**N** is a number, **Z** is a 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. **N** requests per **Z** number of **N**
units.

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

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