# How to edit raw request (not just the body)

**URL:** <https://discourse.mitmproxy.org/t/how-to-edit-raw-request-not-just-the-body/688>\
**Category:** help\
**Created:** [November 3, 2017, 6:42am UTC](https://discourse.mitmproxy.org/t/how-to-edit-raw-request-not-just-the-body/688 "2017-11-03T06:42:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefano](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/stefano/32/223_2.png) [@stefano](https://discourse.mitmproxy.org/u/stefano)\
**Post date:** [November 3, 2017, 6:42am UTC](https://discourse.mitmproxy.org/t/how-to-edit-raw-request-not-just-the-body/688/1 "2017-11-03T06:42:23Z")

</div>

Hi mitmproxy community,

I just installed mitmproxy, seems like a great tool. However, something that is very useful to me when using Burp is being able to edit the entire raw request. Is there a way to do the same using mitmproxy?

Thanks.

---

<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:** [November 4, 2017, 9:10am UTC](https://discourse.mitmproxy.org/t/how-to-edit-raw-request-not-just-the-body/688/2 "2017-11-04T09:10:12Z")

</div>

In the proposed events you can easily access all the properties you can find [here](http://docs.mitmproxy.org/en/stable/scripting/api.html) where there are content, cookies, headers, …  
You can also reply to client with a response that are in a file.

---

<div class="post-metadata">

**Author:** ![stefano](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/stefano/32/223_2.png) [@stefano](https://discourse.mitmproxy.org/u/stefano)\
**Post date:** [November 4, 2017, 5:32pm UTC](https://discourse.mitmproxy.org/t/how-to-edit-raw-request-not-just-the-body/688/3 "2017-11-04T17:32:11Z")

</div>

Thanks for the reply.  
I was asking to do that without using the API, directly from the “flow view”.  
Anyway, it’s not totally necessary but sometimes has been useful.  
I will start using mitmproxy as it is and see if it works for me.

Thanks.
