InsecureRequestWarning: Unverified HTTPS request is being made

Posted 404.Sunflower

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了InsecureRequestWarning: Unverified HTTPS request is being made相关的知识,希望对你有一定的参考价值。

解决方法一:

requests.packages.urllib3.disable_warnings()

解决方法二:

from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

以上是关于InsecureRequestWarning: Unverified HTTPS request is being made的主要内容,如果未能解决你的问题,请参考以下文章

InsecureRequestWarning: Unverified HTTPS request is being made

InsecureRequestWarning: Unverified HTTPS request is being made

python:接口请求中出现requests.exceptions.SSLError 和 InsecureRequestWarning的解决办法

pytest文档46-关于https请求警告问题(InsecureRequestWarning: Unverified HTTPS request is being made)

Python2-问题整理

Requests方法 -- 参数化