【笔记整理】忽略https证书校验
import requests
url = "https://sam.huat.edu.cn:8443/selfservice/"
# 默认不忽略ssl证书,如果有证书问题的网站会报错
# response = requests.get(url)
# 设置verify=False就会忽略掉,只给出一个警告日志
response = requests.get(url, verify=False)
print(response.content)
本文来自博客园,作者:蕝戀,转载请注明原文链接:https://www.cnblogs.com/juelian/p/17559484.html