spacepaste

  1.  
  2. import httplib
  3. conn=httplib.HTTPSConnection('82.95.100.236','4443')
  4. req=conn.request('GET','/axis2/services/DataServiceService?wsdl')
  5. conn.getresponse().read()
  6. Traceback (most recent call last):
  7. File "<stdin>", line 1, in <module>
  8. File "/usr/lib/python2.6/httplib.py", line 910, in request
  9. self._send_request(method, url, body, headers)
  10. File "/usr/lib/python2.6/httplib.py", line 947, in _send_request
  11. self.endheaders()
  12. File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
  13. self._send_output()
  14. File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
  15. self.send(msg)
  16. File "/usr/lib/python2.6/httplib.py", line 735, in send
  17. self.connect()
  18. File "/usr/lib/python2.6/httplib.py", line 1112, in connect
  19. self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  20. File "/usr/lib/python2.6/ssl.py", line 350, in wrap_socket
  21. suppress_ragged_eofs=suppress_ragged_eofs)
  22. File "/usr/lib/python2.6/ssl.py", line 118, in __init__
  23. self.do_handshake()
  24. File "/usr/lib/python2.6/ssl.py", line 293, in do_handshake
  25. self._sslobj.do_handshake()
  26. ssl.SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol
  27. Traceback (most recent call last):
  28. File "<stdin>", line 1, in <module>
  29. File "/usr/lib/python2.6/httplib.py", line 910, in request
  30. self._send_request(method, url, body, headers)
  31. File "/usr/lib/python2.6/httplib.py", line 947, in _send_request
  32. self.endheaders()
  33. File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
  34. self._send_output()
  35. File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
  36. self.send(msg)
  37. File "/usr/lib/python2.6/httplib.py", line 735, in send
  38. self.connect()
  39. File "/usr/lib/python2.6/httplib.py", line 1112, in connect
  40. self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  41. File "/usr/lib/python2.6/ssl.py", line 350, in wrap_socket
  42. suppress_ragged_eofs=suppress_ragged_eofs)
  43. File "/usr/lib/python2.6/ssl.py", line 118, in __init__
  44. self.do_handshake()
  45. File "/usr/lib/python2.6/ssl.py", line 293, in do_handshake
  46. self._sslobj.do_handshake()
  47. socket.error: [Errno 104] Connection reset by peer
  48.