This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author makim
Recipients
Date 2001-12-18.21:34:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
urllib2 on python 2.2 can´t get some SSL pages.

It seams that it´s dependent of the server and the 
issuer of the key.

The server showed below (https://wwws.task.com.br) 
uses IIS 5.0 and 128 bits key issued by Thawte.

I´ve tested on python 2.1 and it's OK.

******** Code *************
import os,urllib2
os.environ["http_proxy"]=''
f = urllib2.urlopen("https://wwws.task.com.br/i.htm")
print f.read()


******** Output ************
Traceback (most recent call last):
  File "./httpstest", line 6, in ?
    f = urllib2.urlopen
("https://wwws.task.com.br/i.htm")
  File "/usr/lib/python2.2/urllib2.py", line 138, in 
urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.2/urllib2.py", line 322, in 
open
    '_open', req)
  File "/usr/lib/python2.2/urllib2.py", line 301, in 
_call_chain
    result = func(*args)
  File "/usr/lib/python2.2/urllib2.py", line 792, in 
https_open
    return self.do_open(httplib.HTTPS, req)
  File "/usr/lib/python2.2/urllib2.py", line 774, in 
do_open
    code, msg, hdrs = h.getreply()
  File "/usr/lib/python2.2/httplib.py", line 728, in 
getreply
    response = self._conn.getresponse()
  File "/usr/lib/python2.2/httplib.py", line 572, in 
getresponse
    response = self.response_class(self.sock)
  File "/usr/lib/python2.2/httplib.py", line 98, in 
__init__
    self.fp = sock.makefile('rb', 0)
  File "/usr/lib/python2.2/httplib.py", line 607, in 
makefile
    buf = self.__ssl.read()
socket.sslerror: (5, 'EOF occurred in violation of 
protocol')

*****************************************
History
Date User Action Args
2007-08-23 13:58:10adminlinkissue494762 messages
2007-08-23 13:58:10admincreate