Skip to content

Instantly share code, notes, and snippets.

@ahelal
Created December 20, 2015 19:18
Show Gist options
  • Save ahelal/4f37e62d267656728303 to your computer and use it in GitHub Desktop.
Save ahelal/4f37e62d267656728303 to your computer and use it in GitHub Desktop.
urllib2 debug traffic
# 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