cURL / Mailing Lists / curl-library / Single Mail


Re: Can I send only part of a file?

From: Tim Bannister <>
Date: Mon, 9 May 2011 19:19:20 +0100

On 9 May 2011, at 19:12, Dan Fandrich wrote:

> 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 it wants, just return the end-of-file indication to libcurl (instead of more data) and it will complete the transfer.

Won't that truncate the file? And, if it does not, won't that behaviour confuse other programmers who want the truncate behaviour?
List admin:
Received on 2011-05-09