我目前正在使用urllib通过RESTful API提取一些数据。是否有一种简单的方法来指示它使用SSLv3或TLSv1 ..
try:
request = urllib2.Request(api_query)
request.add_header("Authorization", "Basic %s" % self.userpass)
f = urllib2.urlopen(request)
response = f.read()
f.close()
return response
except Exception, e:
print "error :",e
谢谢,