Created
July 3, 2012 12:41
-
-
Save anandology/3039510 to your computer and use it in GitHub Desktop.
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 sys | |
# Uses httplib2 by default. | |
# Pass "--requests" command-line arg to use requests. | |
if "--requests" in sys.argv: | |
import requests | |
requests.get("https://auth.hasgeek.com/").content | |
else: | |
import httplib2 | |
h = httplib2.Http() | |
h.request("https://auth.hasgeek.com/", "GET") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment