# Mitmproxy -w - how to include results

**URL:** <https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506>\
**Category:** help\
**Created:** [May 30, 2017, 8:18pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506 "2017-05-30T20:18:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickeyzh](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nickeyzh](https://discourse.mitmproxy.org/u/nickeyzh)\
**Post date:** [May 30, 2017, 8:18pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/1 "2017-05-30T20:18:40Z")

</div>

I get requests and parameters, but not the results (json etc) - how can I include them into my outfile ?

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [May 30, 2017, 11:07pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/2 "2017-05-30T23:07:10Z")

</div>

Each flow is stored in the out file. If a flow has the response, it will be there in the out file.

---

<div class="post-metadata">

**Author:** ![nickeyzh](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nickeyzh](https://discourse.mitmproxy.org/u/nickeyzh)\
**Post date:** [May 31, 2017, 7:36am UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/3 "2017-05-31T07:36:54Z")

</div>

I can see the output using charles proxy, but mitmproxy does not show it. If I search in the out-file, the json output fields are not found…

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [June 1, 2017, 12:19pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/4 "2017-06-01T12:19:04Z")

</div>

How exactly are you searching the out file?  
mitmproxy uses tnetstrings not json

---

<div class="post-metadata">

**Author:** ![nickeyzh](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nickeyzh](https://discourse.mitmproxy.org/u/nickeyzh)\
**Post date:** [June 1, 2017, 12:31pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/5 "2017-06-01T12:31:42Z")

</div>

I open the out file in a text editor and do simple text search…

---

<div class="post-metadata">

**Author:** ![galactic\_cowboy](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@galactic\_cowboy](https://discourse.mitmproxy.org/u/galactic_cowboy)\
**Post date:** [June 1, 2017, 1:51pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/6 "2017-06-01T13:51:51Z")

</div>

If the server responds with gzipped data (compressed on the fly) then MITMProxy will store it that way. If you specify the -z or --anticomp command line argument, it tells servers that it doesn’t want gzipped data so you should get the raw data instead.

---

<div class="post-metadata">

**Author:** ![nickeyzh](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nickeyzh](https://discourse.mitmproxy.org/u/nickeyzh)\
**Post date:** [June 5, 2017, 7:52pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/7 "2017-06-05T19:52:58Z")

</div>

That works - thanks… One final question, the CERTICATE is that client sent to server, or certificate received from the server ?

---

<div class="post-metadata">

**Author:** ![galactic\_cowboy](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@galactic\_cowboy](https://discourse.mitmproxy.org/u/galactic_cowboy)\
**Post date:** [June 13, 2017, 7:29pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-w-how-to-include-results/506/8 "2017-06-13T19:29:11Z")

</div>

That is the certificate received from the server.
