cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:does 7.21.x support ssl connection?

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

how to comply the ssl in 7.21.3?
 /* Define if you have the <ssl.h> header file. */
#define HAVE_SSL_H 1
  
  this config does not work, thanks
  
  ------------------ Original ------------------
  From: "18803307"<18803307_at_qq.com>;
 Date: Thu, Jan 13, 2011 00:44 AM
 To: "curl-library"<curl-library_at_cool.haxx.se>;
 
 Subject: does 7.21.x support ssl connection?

  
 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