Skip to content

Instantly share code, notes, and snippets.

@vanadium23
Created July 19, 2017 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanadium23/2886401864f4f61321c358d7aeaa02f8 to your computer and use it in GitHub Desktop.
Save vanadium23/2886401864f4f61321c358d7aeaa02f8 to your computer and use it in GitHub Desktop.
# debug all requests
import requests
import logging
import http.client
http.client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment