Skip to content

Instantly share code, notes, and snippets.

View eweitz's full-sized avatar

Eric Weitz eweitz

View GitHub Profile
@eweitz
eweitz / http_debugging.py
Last active November 12, 2022 20:32 — forked from tonetheman/http_debugging.py
Debug requests for urllib in Python 3
"""" Tested in Python 3.4 """
import urllib.request
import http.client
http.client.HTTPConnection.debuglevel = 1
response = urllib.request.urlopen('https://github.com/eweitz')