cURL / Mailing Lists / curl-library / Single Mail

curl-library

does 7.21.x support ssl connection?

From: 18803307 <18803307_at_qq.com>
Date: Thu, 13 Jan 2011 00:44:01 +0800

I use the code below in vs2008
 try 7.21.0 7.21.3
 all return error:curle_unsupported_protocol
  
  
 
if (curl)
 {
  curl_easy_setopt(curl,CURLOPT_URL,detect_url.c_str());
 
 
 
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER,false);
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST,1);
 
 
 

  curl_easy_setopt(curl, CURLOPT_HEADER, 1);
  curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
 
  curl_easy_setopt(curl, CURLOPT_USERAGENT, useragent.c_str());
 

     curl_easy_setopt(curl, CURLOPT_PROXY, ProxyStr.c_str());
   curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
    curl_easy_setopt(curl, CURLOPT_COOKIE, cookiestr.c_str());
 
  curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30);
  curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,writer);
  curl_easy_setopt(curl,CURLOPT_WRITEDATA,&buffer);
  
  res = curl_easy_perform(curl);
  curl_easy_cleanup(curl);
  curl_slist_free_all(slist);
 }

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-12