Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created August 19, 2012 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjgiridhar/3394444 to your computer and use it in GitHub Desktop.
Save cjgiridhar/3394444 to your computer and use it in GitHub Desktop.
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