处理requests SSl 证书问题

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

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)

猜你喜欢

转载自www.cnblogs.com/jinggo/p/7772013.html