Firefox plugin or way to monitor ALL request data, including headers and content downloaded to browser

Viewed 56191

I am having problems getting ALL of the information that is downloaded to a browser. For example, I want a plugin, ideally a firefox plugin to download the HTML content and monitor when I get a 302 redirect, and all header information.

So far, use Live HTTP Headers and Firebug. Both are fine.

With Live HTTP headers, I can't monitor the data that is downloaded (e.g. the html data) Firebug is worse, because I can't monitor the headers and I can't monitor the full requests. For example, Firebug won't show you all of the content that is downloaded, just the last set of requests. E.g. redirects will clear the Firebug net monitoring.

I am on win32

8 Answers

It is possible to use a tool like mitmproxy to view and edit HTTP / HTTPS requests and responses, as well as WebSocket messages: https://github.com/mitmproxy/mitmproxy

You can also export a request as a cURL command to edit and replay it without mitmproxy.

The software is open source and written in Python. It provides an API if you want to automate modifications. If you don't want to use the command line, there is also a web version mitmweb. The command mitmdump can be used to view traffic in a non-interactive mode.

Related