curl-library
Re: Only retrieve the headers of a GET reply and return?
From: David Strauss <david_at_davidstrauss.net>
Date: Thu, 11 Apr 2013 13:47:39 -0700
Date: Thu, 11 Apr 2013 13:47:39 -0700
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.
On Thu, Apr 11, 2013 at 1:46 PM, David Strauss <david_at_davidstrauss.net> wrote:
> On Thu, Apr 11, 2013 at 1:40 PM, David Strauss <david_at_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
> | david_at_davidstrauss.net
> | +1 512 577 5827 [mobile]
-- David Strauss | david_at_davidstrauss.net | +1 512 577 5827 [mobile] ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-04-11