# Har\_dump.py not dumping in Windows

**URL:** <https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610>\
**Category:** help\
**Created:** [July 13, 2019, 5:42pm UTC](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610 "2019-07-13T17:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://discourse.mitmproxy.org/u/Robert)\
**Post date:** [July 13, 2019, 5:42pm UTC](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610/1 "2019-07-13T17:42:53Z")

</div>

The command

mitmdump -w dump

works as expected in Windows 10. When I enter the command

mitmdump -s har\_dump.py test.har

mitmdump reports “Loading script har\_dump.py” with no error messages. However, no file called test.har appears anywhere on my hard drive, neither immediately, nor after a few http requests, nor even after I shut down mitmdump. Any suggestions?

---

<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:** [July 15, 2019, 6:19am UTC](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610/2 "2019-07-15T06:19:57Z")

</div>

Is file har\_dump.py present in the folder where you execute the command? Can you give us the content of the py file?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://discourse.mitmproxy.org/u/Robert)\
**Post date:** [July 15, 2019, 6:55am UTC](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610/3 "2019-07-15T06:55:16Z")

</div>

Yes, it is present in the location from which mitimdump.exe is called. The contents of har\_dump.py are as found at [https://raw.githubusercontent.com/mitmproxy/mitmproxy/master/examples/complex/har\_dump.py](https://raw.githubusercontent.com/mitmproxy/mitmproxy/master/examples/complex/har_dump.py)
