cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: return from the function

From: Joe Nardone <jnardone_at_gmail.com>
Date: Tue, 6 Nov 2007 10:36:17 -0500

> #include <curl/curl.h>
>
> int main(int argc, char *argv[])
> {
> CURLcode ret;
> CURL *hnd = curl_easy_init();
> curl_easy_setopt(hnd, CURLOPT_URL, "http://www.haxx.se ");
> curl_easy_setopt(hnd, CURLOPT_HEADER, 1);
> curl_easy_setopt(hnd, CURLOPT_NOBODY, 1);
> ret = curl_easy_perform(hnd);
> curl_easy_cleanup(hnd);
> }
>

You still need to put that header data somewhere. Look at
CURLOPT_HEADERDATA and CURLOPT_HEADERFUNCTION.
Received on 2007-11-06