cocos2d-x :2.1.3
HttpClient.cpp文件中 bool configureCURL(CURL *handle)后边添加如下两句:
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);
cocos2d-x :2.1.3
HttpClient.cpp文件中 bool configureCURL(CURL *handle)后边添加如下两句:
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);
转载于:https://www.cnblogs.com/mokey/p/3317902.html