httpdbg – Debug HTTP Requests in Any Python Program
httpdbg traces every HTTP request your Python code makes without touching your code. Swap python for pyhttpdbg, open localhost:4909, and inspect live request/response pairs grouped by test or script.