windows下使用libcurl

curl_easy_perform返回1,unsupported protocol  

需要下载支持的libcurl(https://curl.haxx.se/windows/)

curl_easy_perform返回60

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

/*关闭SSL验证*/

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);

猜你喜欢

转载自blog.csdn.net/woailp___2005/article/details/108725462
今日推荐