On Thu, Apr 11, 2013 at 01:47:39PM -0700, David Strauss wrote: > Oh, actually it looks like you can make the transfer "fail" right from > the CURLOPT_WRITEFUNCTION, which means you could just have it return > zero. You would have to expect libcurl to consider the request failed, > though. >
This seems to work indeed. Thank you for the tip. > On Thu, Apr 11, 2013 at 1:46 PM, David Strauss <da...@davidstrauss.net> wrote: > > On Thu, Apr 11, 2013 at 1:40 PM, David Strauss <da...@davidstrauss.net> > > wrote: > >> (3) CURLOPT_PROGRESSFUNCTION (with > >> CURLOPT_NOPROGRESS set to zero) to cancel after the body starts. > > > > Here's a good write-up on how to do that: > > http://curl.haxx.se/mail/lib-2009-04/0296.html > > > > -- > > David Strauss > > | da...@davidstrauss.net > > | +1 512 577 5827 [mobile] > > > > -- > David Strauss > | da...@davidstrauss.net > | +1 512 577 5827 [mobile] > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html