你以为是拒绝访问/请求失败/强制断开链接?不,或许是ssl验证的姿势不正确

程序如下:

 

 但是postman没问题啊....

 

 于是找了很多关于强制断开连接的文章,都失败了

后来看到了一篇文章是讲关于ca证书的,于是从这个思路上尝试了下

 

import ssl
 
ssl._create_default_https_context = ssl._create_unverified_context

 

posted @ 2021-05-23 22:19  黑山老道  阅读(106)  评论(0编辑  收藏  举报