我是python上的新手,我非常感谢这个问题的帮助。
我正在使用requests
从kodi
addon
中的云服务中获取文件。
我试图将verify=False
放在get
上,但它没有工作
s = requests.Session()
file = s.get(api_base + '/api/v2/mounts/' + mount['id'] + '/files/download', params = {'path': foldername + '/' + file['name']}, verify=False).json()['link']
我发现以下错误:
SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures.