Hari Krishna Dara added the comment:
Interesting... the posted Python code for 2.x didn't work for me on 2.6.9 on
Mac OS X (10.10.5). The code in catch block further generates the below
exception:
Traceback (most recent call last):
File "/tmp/t.py", line 17, in connect
self.sock =
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: -mrDoctorWho0..
title: Sometimes library raises URLError when trying POST with httpS - https
sslv3 error 14077417: illegal parameter
versions: +Python 2.6, Python 3.1 -Python 2.7
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198139
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198140
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Senthil Kumaran orsent...@gmail.com added the comment:
curl (7.21.0) fails with the same error message too for the target website. (Is
the server doing anything different. For other HTTPS sites (which also use
redirection) urllib.request works fine )
senthil@ubuntu:~/python/py3k$ curl -v
Ian Wetherbee ian.wether...@gmail.com added the comment:
The server seems to be sending a bad TLS handshake, so curl falls back on SSLv3
with TLS disabled.
curl 7.20.1 (x86_64-redhat-linux-gnu) libcurl/7.20.1 NSS/3.12.8.0 zlib/1.2.3
libidn/1.16 libssh2/1.2.4
Protocols: dict file ftp ftps http
Senthil Kumaran orsent...@gmail.com added the comment:
The problem is the server strictly accepts SSLv3 only and urllib and
http.client send SSLv23 protocol.
(In http/client.py, line 1077)
if context is None:
# Some reasonable defaults
context =
Antoine Pitrou pit...@free.fr added the comment:
I get an error using the following curl too:
curl 7.20.1 (x86_64-mandriva-linux-gnu) libcurl/7.20.1 OpenSSL/1.0.0a
zlib/1.2.3 libidn/1.18 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp
scp sftp smtp
Ian Wetherbee ian.wether...@gmail.com added the comment:
Any solution for 2.x? I'm using this with twisted.
--
resolution: rejected -
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
Ian Wetherbee ian.wether...@gmail.com added the comment:
This works for 2.x, I'm closing this issue:
# custom HTTPS opener, banner's oracle 10g server supports SSLv3 only
import httplib, ssl, urllib2, socket
class HTTPSConnectionV3(httplib.HTTPSConnection):
def __init__(self, *args,
New submission from Ian Wetherbee ian.wether...@gmail.com:
Certain https urls do not open using urllib2 (py2.6) and urllib(py3.1), but
they open using the latest version of curl and firefox.
To reproduce:
import urllib.request
Changes by Georg Brandl ge...@python.org:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
___
Python-bugs-list mailing
12 matches
Mail list logo