错误描述:
问题: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)文章来源:https://www.toymoban.com/news/detail-786159.html
文章来源地址https://www.toymoban.com/news/detail-786159.html
到了这里,关于Unverified HTTPS request is being made to host ‘x.x.x.x‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!