cURL / Mailing Lists / curl-library / Single Mail


Re: How do I stop a FTP download?

From: Wei Weng <>
Date: Fri, 24 Oct 2003 16:33:15 -0400 (EDT)

can I something like this?

Place something like a global variable inside a write function, (use
download as an example) check this variable periodically inside the write
function to see if it has been changed to a different value that
represents stop. If yes, then return from the write callbackk function. Is
that right?



On Fri, 24 Oct 2003, Daniel Stenberg wrote:

> On Fri, 24 Oct 2003, Wei Weng wrote:
> > Suppose I already have a FTP download going on with curl_easy_perform. Is
> > there anyway to stop/abort/pause it using any curl function calls?
> You make sure one of the callbacks return a return code that stops the
> transfer. Use the write, read or progress callback.

This email is sponsored by: The Donation Program.
Do you like what is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here:
Received on 2003-10-24