Re: Limiting speed when using CURL functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/07, Richard Lynch <ceo@xxxxxxxxx> 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?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux