Re: Limiting speed when using CURL functions

From: Date: Wed, 14 Mar 2007 11:55:57 +0000
Subject: Re: Limiting speed when using CURL functions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-250546@lists.php.net to get a copy of this message
On 3/12/07, Richard Lynch <ceo@l-i-e.com> wrote:
On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: Is there any way i can limit the transfer speed when using CURL? I'm uploading a file to a server, and i don't want the script to f*** up all bandwidth. I don't recall ever seeing that in curl, but check on the curl site, linked from here: http://php.net/curl It's not on there, but i also contacted the CURL list, and they told
me that libcurl (7.16) accepts the constants CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE, having the integer value of 145 and 146. In PHP those constants have not been defined (I check CVS, and it isn't there in PHP6). But even when using the integer values of those constants, it does not work. On the CURL list they can't help me really because they think it is a PHP problem. Tijnema ps. Installing PHP6 snapshot now to see if it differs.
-- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?


« previous php.general (#250546) next »