【发布时间】:2015-11-13 22:33:24
【问题描述】:
我使用 Arch Linux、python 3.4、openSSL 1.0.2d。当我向https://www.supercash.cz/ 提出请求时,我收到此错误。如果我使用请求或在 urllib 中构建并不重要,总是会出现相同的错误。此站点的 SSL 证书在 Chrome 浏览器中可以正常使用。
File "/usr/lib64/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/lib64/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/lib64/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib64/python3.4/urllib/request.py", line 1225, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib64/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:600)>
我试过了,但它只适用于 python2.7 Error - urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol , help needed
这是 ssl 测试的结果https://www.ssllabs.com/ssltest/analyze.html?d=supercash.cz
【问题讨论】:
标签: python python-3.x ssl python-3.4