Changes

Jump to: navigation, search

TestEngineering/Performance/Raptor/Mitmproxy

4 bytes added, 18:09, 24 July 2018
m
Recording a Mitmproxy Test Page another update
The following process was used to record the mitmproxy page archives (on OSX):
1. Install mitmproxy Mitmproxy 2.X following the mitmproxy [http://docs.mitmproxy.org/en/stable/install.html installation instructions]
2. Setup a local proxy in Firefox:
* Click the "OK" button to save the proxy settings
3. Install the mitmproxy Mitmproxy CA certificate:
* Open a terminal window
* Startup mitmproxy Mitmproxy in host mode:
mitmproxy --host
* In Firefox, browse to "mitm.it" and follow the directions on how to accept the CA certificate
* Shutdown the mitmproxy Mitmproxy tool (in terminal hit "Q", then "Y" to quit)
4. Record a new page:
5. To test playing back your recorded page:
* Start Firefox with the proxy still enabled
* With mitmproxy Mitmproxy NOT running, browse to your recorded URL (i.e. www.spacex.com); you'll just get an error saying that the proxy server is refusing connections* In a terminal window, start mitmproxy Mitmproxy playback:
mitmdump -k /path/to/save/recording.mp
* In Firefox browse to the URL that you recorded already (i.e. www.spacex.com). This time the page will load successfully; it is actually loading the page from the local mitmdump archive file (*.mp) and not the external site
Confirm
372
edits

Navigation menu