Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 20th, 2010  |  syntax: None  |  size: 1.30 KB  |  views: 217  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  url = 'https://10.0.2.22:8999/RPC2'
  2. >>> conn = xmlrpclib.ServerProxy(url, verbose=True)
  3. >>> version=conn.tcos.version()
  4. Traceback (most recent call last):
  5.   File "<stdin>", line 1, in <module>
  6.   File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
  7.     return self.__send(self.__name, args)
  8.   File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
  9.     verbose=self.__verbose
  10.   File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request
  11.     self.send_content(h, request_body)
  12.   File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content
  13.     connection.endheaders()
  14.   File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
  15.     self._send_output()
  16.   File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
  17.     self.send(msg)
  18.   File "/usr/lib/python2.6/httplib.py", line 735, in send
  19.     self.connect()
  20.   File "/usr/lib/python2.6/httplib.py", line 1112, in connect
  21.     self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  22.   File "/usr/lib/python2.6/ssl.py", line 350, in wrap_socket
  23.     suppress_ragged_eofs=suppress_ragged_eofs)
  24.   File "/usr/lib/python2.6/ssl.py", line 118, in __init__
  25.     self.do_handshake()
  26.   File "/usr/lib/python2.6/ssl.py", line 293, in do_handshake
  27.     self._sslobj.do_handshake()
  28. socket.error: [Errno 104] Connection reset by peer