Last active
April 22, 2025 19:55
-
-
Save vadimkantorov/27f76014c615bc8a8a91450e9814a41c to your computer and use it in GitHub Desktop.
Python trace urllib HTTP requests
This file contains hidden or 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 http.client | |
http.client.HTTPConnection.debuglevel = 1 |
This file contains hidden or 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 urllib.request | |
print(urllib.request.urlopen("https://google.com").read()) |
This file contains hidden or 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
PYTHONPATH=. PYTHONVERBOSE=. python test.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment