Created
September 8, 2011 12:25
-
-
Save flavianmissi/1203271 to your computer and use it in GitHub Desktop.
httplib sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib | |
conn = httplib.HTTPConnection("www.google.com") | |
conn.request('GET', '/') | |
response = conn.getresponse() | |
response.status # 302 |
What a nice app! Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this out: http://docs.python-requests.org/en/latest/index.html