libcurl program no output
Hi,
I wrote the following code::::::::::
Code:
#include "stdio.h"
#include "curl/curl.h"
int main ()
{
CURL *curl=NULL;
CURLcode res;
curl=curl_easy_init();
if(curl!=NULL)
{
curl_easy_setopt(curl,CURLOPT_URL,"http://www.google.com");
res=curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
else{printf(" error\n%d",res);}
return 0;
}
compiled it using:::
gcc -o exp1 exp1.c -lcurl
everything worked out fine...
but when i m executing the program...
i m getting no output...
plz help me...
urgent....