Search code examples
jsondumpmitmproxy

mitmproxy to export web traffic as JSON


Trying to save the captured web traffic of the raw HTTP request/response while using mitmproxy:


Solution

  • Mitmproxy currently has no JSON export. We're tentatively planning to support HAR export soon though. There's a community-contributed example for this here, which I think is in better shape than the jsondump one: https://github.com/mitmproxy/mitmproxy/blob/main/examples/contrib/har_dump.py