[Python-bugs-list] [ python-Bugs-531616 ] HTTPS not working

noreply@sourceforge.net noreply@sourceforge.net
Mon, 18 Mar 2002 14:29:10 -0800


Bugs item #531616, was opened at 2002-03-18 17:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=531616&group_id=5470

Category: Python Library
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 7
Submitted By: A.M. Kuchling (akuchling)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPS not working 

Initial Comment:
Opening https:// URLs doesn't work for me with 2.2.1.  If I drop back to 
rev. 1.43 of httplib.py, it works again, so something happened with 
the big sendall() patch to break HTTPS.  

To see the bug, try running 
urllib.py with the -t switch:


---------- https://synergy.as.cmu.edu/~geek/ ----------

Traceback (most recent call last):
  File "urllib.py", line 1453, in ?
    
main()
  File "urllib.py", line 1444, in main
    test(args)
  File 
"urllib.py", line 1406, in test
    fn, h = urlretrieve(url, None, 
reporthook)
  File "urllib.py", line 80, in urlretrieve
    return 
_urlopener.retrieve(url, filename, reporthook, data)
  File 
"urllib.py", line 210, in retrieve
    fp = self.open(url, data)
  File 
"urllib.py", line 178, in open
    return getattr(self, name)(url)
  File 
"urllib.py", line 373, in open_https
    errcode, errmsg, headers = 
h.getreply()
  File "/data/python2/dist/src/Lib/httplib.py", line 
727, in getreply
    response = self._conn.getresponse()
  File 
"/data/python2/dist/src/Lib/httplib.py", line 572, in getresponse
    
response = self.response_class(self.sock)
  File 
"/data/python2/dist/src/Lib/httplib.py", line 98, in __init__
    
self.fp = sock.makefile('rb', 0)
  File 
"/data/python2/dist/src/Lib/httplib.py", line 607, in makefile
    
buf = self.__ssl.read()
socket.sslerror: (1, 'error:1408F10B:SSL 
routines:SSL3_GET_RECORD:wrong version
number')
ute 
Lib>



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=531616&group_id=5470