2012-02-23 01:57:43 +00:00
|
|
|
|
2014-09-08 14:02:31 +00:00
|
|
|
def request(context, flow):
|
2015-05-30 00:03:28 +00:00
|
|
|
if "application/x-www-form-urlencoded" in flow.request.headers[
|
|
|
|
"content-type"]:
|
2014-09-05 13:16:20 +00:00
|
|
|
form = flow.request.get_form_urlencoded()
|
|
|
|
form["mitmproxy"] = ["rocks"]
|
2015-05-30 00:03:28 +00:00
|
|
|
flow.request.set_form_urlencoded(form)
|