curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl: add --rate to set max request rate per time unit

From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 4 Apr 2022 07:19:15 -0600

On Apr 4, 2022, at 06:42:09, Daniel Stenberg wrote:
>
> I took a stab at a first implementation of a TODO item from 2019.
> When curl is told to do more than one (serial) transfer, we can give it max frequency in transfers per time unit. Example:
>
Yes. I have not used curl with multiple URLs (at first I didn't k now it
was possible) but in a "for". For one site I need a delay of (empirically)
0.3 seconds.

> curl --rate 15/s $URL[a-z] -O
>
I might prefer to simplify to:
    curl --delay 0.07 $URL[a-z] -O # Always in seconds

This might allow such as "--delay 86400".

-- 
gil
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-04