cURL / Mailing Lists / curl-library / Single Mail


Re: cancel transfer cleanly

From: Jeff Pohlmeyer <>
Date: Thu, 16 Apr 2009 18:25:09 -0500

On Apr 16, 2009, wrote:

> How do I trigger an immediate and clean stop of transfer ?

You can return non-zero from your CURLOPT_PROGRESSFUNCTION
callback, which should get called approximately once every second.
(Hopefully that will be fast enough)

Note that you also need to set CURLOPT_NOPROGRESS set to zero
in order to enable the progress callback.

 - Jeff
Received on 2009-04-17