[PATCH] cURL limiting upload/download speed

php.internals

Tijnema !

19 years ago
Hi, I've written a small patch so that PHP supports limiting upload/download speed when using cURL. The patch is based on PHP-5.2.1, but works also on PHP6 from CVS(Only differs in offset a little bit) . What the patch does is adding 2 extra constants for the curl_setopt() function. The new constants are: CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE So these must also be added to the manual if you are going to implement this patch. Kind Regards, Tijnema

Edin Kadribasic

19 years ago
Hi Tijnema, The mailing lists strips attachment that don't have a correct mime-type. Could you post your patch somewhere and send the link to the list? Does this patch require specific cURL version? Edin Tijnema ! wrote:

Tijnema !

19 years ago
On 3/16/07, Edin Kadribasic <edin@krug.dk> wrote:
> Hi Tijnema, > > The mailing lists strips attachment that don't have a correct mime-type. > Could you post your patch somewhere and send the link to the list? > > Does this patch require specific cURL version? > > Edin
Ok, i uploaded it to rapidshare: http://rapidshare.com/files/21320376/php-curl-limit-speed.patch I've written it so that if libcurl version is >= 7.16.0 it enables it, else it does nothing as this is supported since libcurl 7.16.0 Tijnema