cURL / Mailing Lists / curl-library / Single Mail


Re: Can I send only part of a file?

From: Saqib Ali <>
Date: Tue, 10 May 2011 11:07:47 -0400

> The data sent by by libcurl comes from the CURLOPT_READFUNCTION callback
> function which is part of your app. Once the app has finished sending all
> wants, just return the end-of-file indication to libcurl (instead of more
> data) and it will complete the transfer.
>>> Dan

Ok. Great.
So the CURL_OPT_INFILESIZE is then only used as one of the arguments to the
progress callback function (dltotal or ultotal)? Is it ever used for
anything else?

- Saqib

List admin:
Received on 2011-05-10