Created
December 20, 2015 19:18
-
-
Save ahelal/4f37e62d267656728303 to your computer and use it in GitHub Desktop.
urllib2 debug traffic
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
# support https | |
#handler=urllib2.HTTPSHandler(debuglevel=2) | |
handler=urllib2.HTTPSHandler(debuglevel=2) | |
opener = urllib2.build_opener(handler) | |
urllib2.install_opener(opener) | |
r = urllib2.urlopen("https://google.com") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment