Message10796

Author yan12125
Recipients yan12125
Date 2016-03-03.15:46:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457019969.61.0.755864006632.issue2481@psf.upfronthosting.co.za>
In-reply-to
Content
Current lib-python/2.7/urllib2.py is out-dated. As a result, I can't disable SSL certificate verification in pure Python:

import ssl
import urllib2

context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
req = urllib2.urlopen('https://wrong.host.badssl.com/', context=context)
print(req.read())

Please update it.
History
Date User Action Args
2016-03-03 15:46:09yan12125setrecipients: + yan12125
2016-03-03 15:46:09yan12125setmessageid: <1457019969.61.0.755864006632.issue2481@psf.upfronthosting.co.za>
2016-03-03 15:46:09yan12125linkissue2481 messages
2016-03-03 15:46:08yan12125create