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 orsenthil
Recipients Ian.Wetherbee, orsenthil, pitrou
Date 2011-02-16.09:47:47
SpamBayes Score 0.010475135
Marked as misclassified No
Message-id <1297849668.59.0.368144802902.issue11220@psf.upfronthosting.co.za>
In-reply-to
Content
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 = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
                 context.options |= ssl.OP_NO_SSLv2
             will_verify = context.verify_mode != ssl.CERT_NONE


However, in order to use only SSLv3, one can set the context to ssl.PROTOCOL_SSLv3 in the HTTPSHandler and use it.

import urllib.request
import ssl
https_sslv3_handler = urllib.request.HTTPSHandler(context=ssl.SSLContext(ssl.PROTOCOL_SSLv3))
opener = urllib.request.build_opener(https_sslv3_handler)
urllib.request.install_opener(opener)
urllib.request.urlopen('https://ui2web1.apps.uillinois.edu/BANPROD1/bwskfcls.P_GetCrse')
History
Date User Action Args
2011-02-16 09:47:48orsenthilsetrecipients: + orsenthil, pitrou, Ian.Wetherbee
2011-02-16 09:47:48orsenthilsetmessageid: <1297849668.59.0.368144802902.issue11220@psf.upfronthosting.co.za>
2011-02-16 09:47:48orsenthillinkissue11220 messages
2011-02-16 09:47:47orsenthilcreate