Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tornado - Blocking Httpclient
print "Blocking HTTPClient"
from tornado import ioloop
from tornado import httpclient
http_client = httpclient.HTTPClient()
try:
http_client.fetch("http://google.co.in/")
print "HTTPClient Response"
except httpclient.HTTPError, e:
print "Error:", e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.