cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: change upload speed during perform

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 14 Sep 2008 09:11:47 -0700

On Sun, Sep 14, 2008 at 03:06:07PM +0200, Christian Rudolph wrote:
> I use libcurl with delphi and I'm wondering if there is a possibility to
> change the upload speed during a perform.
> I imagine something like this: the user starts uploading a file via http
> POST. When the perform is started, he wants to limit bandwith to another
> value than defined before the perform started.

The app can always pause as long as necessary in the read callback to reduce
the upload speed itself. You can probably also call curl_easy_setopt
with a new CURLOPT_MAX_SEND_SPEED_LARGE from the read or progress callback,
too.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-09-14