urllib.request.install_opener(urllib.request.build_opener(urllib.request.HTTPHandler(debuglevel=1)))
urllib.request.urlopen(url)
How can I see the entire HTTP request that's being sent by my Python application?