转载至:https://www.zhihu.com/question/40025043

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Solution1:

1.首先运行python的时候关闭Fiddler这个软件,开启它之后运行python会自动改变端口,造成ssl错误。

2.

import ssl

ssl.create_default_https_context = ssl._create_unverified_context

Solution2:
r = requests.get('https://10.125.2.172/bin-java/login?f=general/login.htm',verify=False)
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄