- try:
- contents = curlwrapper.retrieve('https://%s%s' % (host, handler), request_body)
- return xmlrpclib.loads(contents)[0]
- except curlwrapper.CurlException, e: raise xmlrpclib.ProtocolError(host + handler, -1, str(e), '')
+ url='https://%s%s' % (host, handler)
+ # this might raise an xmlrpclib.Protocolerror exception
+ contents = curlwrapper.retrieve(url,
+ cacert = self.cacert,
+ postdata = request_body,
+ timeout = self.timeout)
+ return xmlrpclib.loads(contents)[0]