cURL / Mailing Lists / curl-library / Single Mail

curl-library

getting to variables

From: Nishantha Pradeep <nishantha_at_bcsc.lk>
Date: Wed, 7 Nov 2007 14:09:15 +0530

#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);
> }
>
using above programme,I was able to get the header and I wrote it to a file
also.But I want to get the header variables in to general c language
programe in order to use them normally as as in general C programe.Os there
any help in curl to get header variable in to our variables with out writing
to a file.
Received on 2007-11-07