curl-library
(no subject)
Date: Fri, 29 Jun 2012 11:19:50 +0100
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 ?
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-06-29