[PyPy-issue] [issue615] Errors when using urllib with SSL

Steve Smith pypy-dev-issue at codespeak.net
Thu Dec 23 06:10:17 CET 2010


New submission from Steve Smith <tarkasteve at gmail.com>:

urllib returns various errors when accessing SSL sites.  Example code below.

With Google it throws "sslerror: EOF occurred in violation of protocol: 8"; with
most other (e.g. https://www.atlassian.com/) it throws "sslerror: TLS/SSL
connection has been closed: 6".

Code:

import urllib
import sys

url="https://encrypted.google.com/"
if len(sys.argv) > 1:
    url = sys.argv[1]

fd = urllib.urlopen(url)

count = 0
for line in fd:
    count += 1
    print "\rLine", count,

----------
effort: ???
messages: 2033
nosy: pypy-issue, tarkasteve
priority: bug
release: ???
status: unread
title: Errors when using urllib with SSL

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue615>
_______________________________________________________



More information about the Pypy-issue mailing list