cURL / Mailing Lists / curl-library / Single Mail


Re: cancel upload in curl

From: Fabian Frank <>
Date: Tue, 18 Mar 2014 21:00:53 -0700

On Tue, Mar 18, 2014 at 7:28 PM, <> wrote:

> I register read callback, but it hasn't be called.
> I think when read callback return 0,the transfer will be it
> right?

Please refer to, which
states that "The read callback may return CURL_READFUNC_ABORT to stop the
current operation immediately, resulting in a CURLE_ABORTED_BY_CALLBACK
error code from the transfer". You should not return 0 to abort a transfer.


List admin:
Received on 2014-03-19