# Is it possible to save the all requests/responses and replay the changed requests automatic?

**URL:** <https://discourse.mitmproxy.org/t/is-it-possible-to-save-the-all-requests-responses-and-replay-the-changed-requests-automatic/968>\
**Category:** help\
**Created:** [April 8, 2018, 5:23am UTC](https://discourse.mitmproxy.org/t/is-it-possible-to-save-the-all-requests-responses-and-replay-the-changed-requests-automatic/968 "2018-04-08T05:23:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jake](https://discourse.mitmproxy.org/u/Jake)\
**Post date:** [April 8, 2018, 5:23am UTC](https://discourse.mitmproxy.org/t/is-it-possible-to-save-the-all-requests-responses-and-replay-the-changed-requests-automatic/968/1 "2018-04-08T05:23:37Z")

</div>

Is it possible to save the all requests/responses and replay the changed requests automatic?

Hello,thanks a lot for read and help me.  
1.I want to used MITMProxy save the all requests/responses in mysql database.(I done.use “mitmdump -s savetomysql.py”)  
2.Then,I want to change the requests(stored in the 1),for example,the original HTTP Request post data is “user=admin1&password=pass1”,and I want to change to “user=admin2&password=pass2”,replay them automatic.

Could you help me how to do it?

Is it possible to get the size of Response Data?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Gigiarum](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/gigiarum/32/278_2.png) [@Gigiarum](https://discourse.mitmproxy.org/u/Gigiarum)\
**Post date:** [April 11, 2018, 1:15pm UTC](https://discourse.mitmproxy.org/t/is-it-possible-to-save-the-all-requests-responses-and-replay-the-changed-requests-automatic/968/2 "2018-04-11T13:15:24Z")

</div>

> [@Jake](#):
>
> the original HTTP Request post data is “user=admin1&password=pass1”,and I want to change to “user=admin2&password=pass2”

You can look at [modify\_form example](https://github.com/mitmproxy/mitmproxy/blob/master/examples/simple/modify_form.py) or [modify\_querystring example](https://github.com/mitmproxy/mitmproxy/blob/master/examples/simple/modify_querystring.py).
