cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Only receive a header file

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Thu, 4 Mar 2010 12:31:50 -0600

On Thu, Mar 4, 2010 at 12:17 PM, dylan wrote:

> From the above it looks like i just set the CURLOPT_NOBODY option
> and that should keep the body from being downloaded?

Yes. Note that the content-length (if available) can also be retrieved
via curl_easy_getinfo() using CURLINFO_CONTENT_LENGTH_DOWNLOAD, after a
successful call to curl_easy_perform().

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-04