Message128635
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') |
|
Date |
User |
Action |
Args |
2011-02-16 09:47:48 | orsenthil | set | recipients:
+ orsenthil, pitrou, Ian.Wetherbee |
2011-02-16 09:47:48 | orsenthil | set | messageid: <1297849668.59.0.368144802902.issue11220@psf.upfronthosting.co.za> |
2011-02-16 09:47:48 | orsenthil | link | issue11220 messages |
2011-02-16 09:47:47 | orsenthil | create | |
|