cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Pulling only header info

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 4 Mar 2005 20:39:40 +0100 (CET)

On Fri, 4 Mar 2005, Operator Tank wrote:

> However, I also see the main body of the URL also getting returned.
>
> Is there any flag that I have missed out to set in libcurl, for
> curl_easy_opt(), to make sure that we request only the header information
> rather than the whole document.

By default, libcurl has a WRITEFUNCTION set that outputs received data to
stdout. Just set your own instead or change WRITEDATA, and it won't happen
anymore.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-03-04