# Need to get only request 'headers and its body' mitmdump

**URL:** <https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199>\
**Category:** help\
**Created:** [October 14, 2016, 6:57pm UTC](https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199 "2016-10-14T18:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shiv](https://discourse.mitmproxy.org/u/shiv)\
**Post date:** [October 14, 2016, 6:57pm UTC](https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199/1 "2016-10-14T18:57:21Z")

</div>

Just wanted to ask that is it possible in `mitmdump` to get only the request headers and its body content  
I did use `mitmdump -dd` but that does also give me response headers and its content,which makes the file really big…  
Can anybody please provide me a link or advice on this can be done?

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [October 23, 2016, 4:57am UTC](https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199/2 "2016-10-23T04:57:02Z")

</div>

You can implement a custom logger as a mitmproxy script: [https://github.com/mitmproxy/mitmproxy/tree/master/examples](https://github.com/mitmproxy/mitmproxy/tree/master/examples)
