curl-library
SSL strangeness
Date: Sun, 5 Sep 2010 19:41:00 -0500
I'm having trouble connecting to several SSL sites with the following code. I have used the same code in the past, and it works fine. I have the necessary files (libeay32.dll and ssleay32.lib) in the Windows/System32 directory.
I am using the precompiled V7.15.1 library. Can someone please help me troubleshoot.
CURL *curl;
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_write_func);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies");
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "cookies");
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)");
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &config);
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headfile);
curl_easy_setopt(curl,CURLOPT_CAINFO, "cacert.pem");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_REFERER, "https://www.securesite.com");
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-06