My suggestion would be to use CURLOPT_DEBUGFUNCTION to enable logging,
and in the
debug function, print out or otherwise log the data received to find out
how far the
library is getting.
On 6/29/2012 3:19 AM, [email protected] wrote:
Hello, I am using libcurl with my C++ program on Visual Studio 2010
environment and my code hangs on curl_easy_perform inspite of specifying
timeout.
curl_handler = curl_easy_init();
//Curl handler
initialization.
if(curl_handler)
{
curl_easy_setopt(curl_handler, CURLOPT_HTTPHEADER, header);
curl_easy_setopt(curl_handler, CURLOPT_URL,url_ptr);
curl_easy_setopt(curl_handler, CURLOPT_POSTFIELDS, xmlstuff);
curl_easy_setopt(curl_handler, CURLOPT_NOSIGNAL,0);
curl_easy_setopt(curl_handler, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl_handler, CURLOPT_COOKIEFILE,
"cookiefile.txt");
curl_easy_setopt(curl_handler, CURLOPT_COOKIEJAR,
"cookiefile.txt");
curl_easy_setopt(curl_handler, CURLOPT_CONNECTTIMEOUT_MS,6000);
response = curl_easy_perform(curl_handler);
/*Other Logic follows*/
}
Any clues ?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html