cURL / Mailing Lists / curl-library / Single Mail


return from the function

From: Nishantha Pradeep <>
Date: Tue, 6 Nov 2007 18:53:04 +0530

#include <curl/curl.h>

int main(int argc, char *argv[])
   CURLcode ret;
   CURL *hnd = curl_easy_init();
   curl_easy_setopt(hnd, CURLOPT_URL, "");
   curl_easy_setopt(hnd, CURLOPT_HEADER, 1);
   curl_easy_setopt(hnd, CURLOPT_NOBODY, 1);
   ret = curl_easy_perform(hnd);

I used that code to get http header and I entered my other c languge code at
the end of the curl_easy_cleanup(hnd);
but the function returns immediately after the exicution of above
code.Therefore what should I do for not to returning from the hole function.
Received on 2007-11-06