cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: stop curl, stop!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 31 Mar 2014 23:08:33 +0200 (CEST)

On Mon, 31 Mar 2014, curler wrote:

> Clearly, there's some benefit to detecting the error early, and aborting the
> curl connection... i.e. if you've uploaded 1GB of a 100GB file, it makes
> very little sense to have to upload the entire 99 remaining gigabytes before
> curl returns with an error.
>
> The question is, how do you do that cleanly? I can't find any way to
> terminate the connection via the easy interface.

I think this one answers the question:

   http://curl.haxx.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe

if not, please elaborate!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-31