-
-
Save eweitz/90f88f5d84f8fea356a4 to your computer and use it in GitHub Desktop.
Debug requests for urllib in Python 3
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
"""" Tested in Python 3.4 """ | |
import urllib.request | |
import http.client | |
http.client.HTTPConnection.debuglevel = 1 | |
response = urllib.request.urlopen('https://github.com/eweitz') |
Works for me, thanks!
Works just fine in python 3.7.3 on Raspbian Buster 👍
Not working on Python 3.10.7
Not working on Python 3.10.7
Opened a PR in cpython: python/cpython#99353 (Respect http.client.HTTPConnection.debuglevel
in urllib.request.AbstractHTTPHandler
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work :(