报错原因
在使用代理进行请求时,代理只通过HTTP请求,此时请求进行HTTPS验证时验证失败。
方案
修改本地代理,将HTTPS覆盖为HTTP请求
Windows 10下打开设置 -> 网络和Internet -> 代理,找到代理的IP和端口

proxies = {
'http': 'http://127.0.0.1:1080',
'https': 'http://127.0.0.1:1080'
}
res = requests.post(url, data=data, timeout=15, proxies=proxies)
5492



被折叠的 条评论
为什么被折叠?



