1. requests https访问错误SSLError: certificate verify failed 及InsecureRequestWarning处理办法
在写慕课网接口测试时,遇到上述问题,搜了以后发现的解决方案:
1.1 res = requests.post(url,data,verify=False) 加上了verify参数,但是出现了提示信息:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
1.2 from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
https://blog.csdn.net/mighty13/article/details/78076258?locationNum=3&fps=1