重新编译了libcurl 去访问https 地址还是不能访问

从网上找到了解决方案:

curl有两种方式使用https :

1. 设定为不验证证书和HOST

code = curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);

 

加上上面的不验证证书就可以访问https 地址了

 

参考:http://blog.csdn.net/wvtear/article/details/9817033

相关文章:

  • 2021-08-26
  • 2021-04-12
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-01-22
  • 2022-12-23
  • 2021-10-24
相关资源
相似解决方案