mitmproxy/examples/simple
Aldo Cortesi 0c6663d0d5 Enable custom options for addons
- Add an options parameter to the start() event. This is to be used by addons
on startup to add custom options.
- Add a running() event that is called once the proxy is up and running.
- With the new paradigm we can't log during master __init__, so add a tiny
termstatus addon to print proxy status to terminal once we're running.
2017-03-14 08:32:19 +13:00
..
add_header_class.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
add_header.py organize examples 2016-11-21 02:28:10 +01:00
custom_contentview.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
custom_option.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
filter_flows.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
io_read_dumpfile.py organize examples 2016-11-21 02:28:10 +01:00
io_write_dumpfile.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
log_events.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
modify_body_inject_iframe.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
modify_form.py organize examples 2016-11-21 02:28:10 +01:00
modify_querystring.py organize examples 2016-11-21 02:28:10 +01:00
README.md update log_events.py 2017-01-16 18:11:18 +08:00
redirect_requests.py organize examples 2016-11-21 02:28:10 +01:00
script_arguments.py Enable custom options for addons 2017-03-14 08:32:19 +13:00
send_reply_from_proxy.py organize examples 2016-11-21 02:28:10 +01:00
upsidedownternet.py organize examples 2016-11-21 02:28:10 +01:00
wsgi_flask_app.py Enable custom options for addons 2017-03-14 08:32:19 +13:00

Simple Examples

Filename Description
add_header.py Simple script that just adds a header to every request.
custom_contentview.py Add a custom content view to the mitmproxy UI.
filter_flows.py This script demonstrates how to use mitmproxy's filter pattern in scripts.
io_read_dumpfile.py Read a dumpfile generated by mitmproxy.
io_write_dumpfile.py Only write selected flows into a mitmproxy dumpfile.
log_events.py Use mitmproxy's logging API.
modify_body_inject_iframe.py Inject configurable iframe into pages.
modify_form.py Modify HTTP form submissions.
modify_querystring.py Modify HTTP query strings.
redirect_requests.py Redirect a request to a different server.
script_arguments.py Add arguments to a script.
send_reply_from_proxy.py Send a HTTP response directly from the proxy.
upsidedownternet.py Turn all images upside down.
wsgi_flask_app.py Embed a WSGI app into mitmproxy.