mitmproxy/examples/modify_form.py

6 lines
175 B
Python
Raw Normal View History

2014-09-08 14:02:31 +00:00
def request(context, flow):
form = flow.request.urlencoded_form
if form is not None:
form["mitmproxy"] = ["rocks"]
flow.request.urlencoded_form = form