fork download
  1. # -*- coding: utf-8 -*-
  2. import httplib
  3. import urlparse
  4.  
  5. url = 'http://h...content-available-to-author-only...n.org/post'
  6.  
  7. headers = {'Content-Type': 'text/plain; charset=UTF-8', 'Connection': 'close'}
  8. conn = httplib.HTTPConnection(urlparse.urlsplit(url).netloc, timeout=30)
  9. try:
  10. conn.request("POST", url, b'abc', headers)
  11. response = conn.getresponse()
  12. print(response.msg)
  13. response.close()
  14. finally:
  15. conn.close()
  16.  
Runtime error #stdin #stdout 0.17s 11656KB
stdin
Standard input is empty
stdout
Standard output is empty