curl-library
return from the function
From: Nishantha Pradeep <nishantha_at_bcsc.lk>
Date: Tue, 6 Nov 2007 18:53:04 +0530
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, "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);
}
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