cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Only retrieve the headers of a GET reply and return?

From: Mohammad_Alsaleh <msal_at_tormail.org>
Date: Fri, 12 Apr 2013 02:56:06 +0300

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 <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.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-12