mitmproxy/examples/modify_form.py
2014-09-03 23:44:54 +02:00

9 lines
238 B
Python

def request(context, flow):
if "application/x-www-form-urlencoded" in flow.request.headers["content-type"]:
frm = flow.request.form_urlencoded
frm["mitmproxy"] = ["rocks"]
flow.request.form_urlencoded = frm