cURL / Mailing Lists / curl-library / Single Mail


Re: CURL_READFUNC_ABORT doesn't prevent a zero-lenght file transfer

From: Daniel Stenberg <>
Date: Fri, 15 Apr 2005 10:53:55 +0200 (CEST)

On Fri, 15 Apr 2005, Ivan Makale wrote:

> I'm using CURL_READFUNC_ABORT in the read callback to abort an FTP upload
> operation, but the file which is being transferred actually is transferred
> with zero lenght: is it possible to abort completely the operation, without
> even a zero-length file transfer?

I'm reading the source code just now and I don't see how libcurl calls the
write callback if you return CURL_READFUNC_ABORT from the read callback...

Are you sure it does this? Can you provide an example source code for us to
test with?

And as usual: OS and libcurl version info helps!

  Commercial curl and libcurl Technical Support:
Received on 2005-04-15