当前位置:   article > 正文

Unverified HTTPS request is being made to host ‘x.x.x.x‘_adding certificate verification is strongly advise

adding certificate verification is strongly advised.

错误描述:

        问题:InsecureRequestWarning: Unverified HTTPS request is being made to host 'x.x.x.x'. Adding certificate verification is strongly advised.

        解释:不安全请求警告:正在向主机“x.x.x.x”发出未经验证的HTTPS请求。强烈建议添加证书验证。

问题原因:请求参数添加 verify=False 引起

解决方案:

        import urllib3

        禁用 urllib3 的安全请求警告:

        urllib3.disable_warnings()

        requests.get(url=url,verify=False)

        

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/76124
推荐阅读
相关标签
  

闽ICP备14008679号