curl-library
Re: Only receive header info
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 16 Mar 2005 08:10:28 +0100 (CET)
Date: Wed, 16 Mar 2005 08:10:28 +0100 (CET)
On Wed, 16 Mar 2005, Daniel Czarnecki wrote:
> If I got the header as part of a GET how could I cancel the transfer after
> the header has been processed? Can I issue some sort of command in the first
> WRITEFUNCTION call?
Returning 0 will make libcurl stop transferring.
> Is the WRITEFUNCTION only called after the header has been processed?
Yes, unless you've set CURLOPT_HEADER to TRUE.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2005-03-16