# help

**URL:** https://discourse.mitmproxy.org/c/help/5.md?page=1

[Latest](https://discourse.mitmproxy.org/latest.md) · [Categories](https://discourse.mitmproxy.org/categories.md)

**Page:** 2

---

## [Can't find har export on Windows 10 after mitmdump](https://discourse.mitmproxy.org/t/cant-find-har-export-on-windows-10-after-mitmdump/1295)

<div class="topic-metadata">

**Author:** [@nittolio](https://discourse.mitmproxy.org/u/nittolio)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 1:32pm UTC](https://discourse.mitmproxy.org/t/cant-find-har-export-on-windows-10-after-mitmdump/1295 "2019-07-15T13:32:41Z")

</div>

Hi there, I’m trying to dump HAR file using mitmdump on Win 10. I am using the example har\_dump. mitmdump -s examples/complex/har\_dump.py -w dump.mitm --set hardump=dump.har I launch this command in cmd/powershell and…

---

## [Intercepting and re-writing without upstream connection](https://discourse.mitmproxy.org/t/intercepting-and-re-writing-without-upstream-connection/1614)

<div class="topic-metadata">

**Author:** [@andrewd13](https://discourse.mitmproxy.org/u/andrewd13)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 1:04pm UTC](https://discourse.mitmproxy.org/t/intercepting-and-re-writing-without-upstream-connection/1614 "2019-07-15T13:04:32Z")

</div>

I have an addon which intercepts requests to a given server and replaces their content entirely. The script is a little more complex than this, but that’s the gist of it. Example: def request(self, flow): if self.\_dom…

---

## [Strange mitmdump behavior in Windows](https://discourse.mitmproxy.org/t/strange-mitmdump-behavior-in-windows/1612)

<div class="topic-metadata">

**Author:** [@Robert](https://discourse.mitmproxy.org/u/Robert)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 11:34am UTC](https://discourse.mitmproxy.org/t/strange-mitmdump-behavior-in-windows/1612 "2019-07-15T11:34:01Z")

</div>

A single call to mitmdump.exe in Windows results in not one, but two processes named mitmdump.exe, as observed in Task Manager. I am certain that both processes arise from the same call to mitmdump.exe because Task Mana…

---

## [Har\_dump.py not dumping in Windows](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610)

<div class="topic-metadata">

**Author:** [@Robert](https://discourse.mitmproxy.org/u/Robert)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 6:55am UTC](https://discourse.mitmproxy.org/t/har-dump-py-not-dumping-in-windows/1610 "2019-07-15T06:55:16Z")

</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 …

---

## [Certutil fails with self-signed certificate error](https://discourse.mitmproxy.org/t/certutil-fails-with-self-signed-certificate-error/946)

<div class="topic-metadata">

**Author:** [@qyaz](https://discourse.mitmproxy.org/u/qyaz)\
**Replies:** 5\
**Last updated:** [July 14, 2019, 6:21am UTC](https://discourse.mitmproxy.org/t/certutil-fails-with-self-signed-certificate-error/946 "2019-07-14T06:21:16Z")

</div>

hi. I am trying to add the mitmproxy-ca-cert.p12 certificate via cli in Windows 10 (17.09) with: certutil.exe -importpfx Root mitmproxy-ca-cert.p12 It asks an admin prompt. So inside an admin cmd.exe, it fails with: c…

---

## [How to specify proxy URI (Path) for mitmproxy - Rewrite path](https://discourse.mitmproxy.org/t/how-to-specify-proxy-uri-path-for-mitmproxy-rewrite-path/1599)

<div class="topic-metadata">

**Author:** [@stmx38](https://discourse.mitmproxy.org/u/stmx38)\
**Replies:** 1\
**Last updated:** [July 7, 2019, 4:15pm UTC](https://discourse.mitmproxy.org/t/how-to-specify-proxy-uri-path-for-mitmproxy-rewrite-path/1599 "2019-07-07T16:15:51Z")

</div>

Hello, We are trying to analyze traffic between our Nginx reverse proxy and Web server: Client --\> Internet --\> Nginx --\> Webserver Client --\> Internet --\> Nginx --\> mitmproxy --\> Webserver If I understand correctly …

---

## [Error: 0407006A: rsa routines: RSA\_padding\_check\_PKCS1\_type\_1: block type is not 01](https://discourse.mitmproxy.org/t/error-0407006a-rsa-routines-rsa-padding-check-pkcs1-type-1-block-type-is-not-01/1122)

<div class="topic-metadata">

**Author:** [@ceffa](https://discourse.mitmproxy.org/u/ceffa)\
**Replies:** 1\
**Last updated:** [July 1, 2019, 6:37am UTC](https://discourse.mitmproxy.org/t/error-0407006a-rsa-routines-rsa-padding-check-pkcs1-type-1-block-type-is-not-01/1122 "2019-07-01T06:37:15Z")

</div>

Hi, I would like to use transparent mode with HTTPS connection but it doesn’t work for me. I have installed certificates from ~/.mitmproxy/… but there is still some problems with verification. Do you have any idea what…

---

## [Extract all request URLs from a session](https://discourse.mitmproxy.org/t/extract-all-request-urls-from-a-session/26)

<div class="topic-metadata">

**Author:** [@rommelfs](https://discourse.mitmproxy.org/u/rommelfs)\
**Replies:** 4\
**Last updated:** [June 29, 2019, 3:37am UTC](https://discourse.mitmproxy.org/t/extract-all-request-urls-from-a-session/26 "2019-06-29T03:37:17Z")

</div>

Hi all, Is there a(n easy) way I can export all request URLS from a mitmproxy session? I know I can copy&paste the URLs from the flow view, and I could probably do something with a file of saved flows. While copy&pas…

---

## [How to set an external proxy in script?](https://discourse.mitmproxy.org/t/how-to-set-an-external-proxy-in-script/1594)

<div class="topic-metadata">

**Author:** [@TheGrado](https://discourse.mitmproxy.org/u/TheGrado)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 10:19am UTC](https://discourse.mitmproxy.org/t/how-to-set-an-external-proxy-in-script/1594 "2019-06-27T10:19:40Z")

</div>

I’m trying to make a python3.7 script that switches the upstream proxy to an external one for every request that goes trouh the mitm proxy, the structure should look like this: CLIENT \> MITM \> EXTERNAL USER:AUTH PROXY \> …

---

## [Save traffic in pcap file or best way to log post data](https://discourse.mitmproxy.org/t/save-traffic-in-pcap-file-or-best-way-to-log-post-data/177)

<div class="topic-metadata">

**Author:** [@phackt](https://discourse.mitmproxy.org/u/phackt)\
**Replies:** 5\
**Last updated:** [June 26, 2019, 8:50am UTC](https://discourse.mitmproxy.org/t/save-traffic-in-pcap-file-or-best-way-to-log-post-data/177 "2019-06-26T08:50:10Z")

</div>

Hello Everybody, My question is, is there a way to store traffic in pcap format, and if not what is the best option to log post data? With option -w/-a all html traffic is logged, we can replay it with mitmdump but my …

---

## [Mitmproxy ignores VPN? - No, works it ok, but a browser was not updating the page](https://discourse.mitmproxy.org/t/mitmproxy-ignores-vpn-no-works-it-ok-but-a-browser-was-not-updating-the-page/1586)

<div class="topic-metadata">

**Author:** [@MikePlacid](https://discourse.mitmproxy.org/u/MikePlacid)\
**Replies:** 1\
**Last updated:** [June 19, 2019, 9:23pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-ignores-vpn-no-works-it-ok-but-a-browser-was-not-updating-the-page/1586 "2019-06-19T21:23:31Z")

</div>

I am running mitmdump on my user account, on MacOS. I have configured the Firefox browser on the same account to use mitmdump as an HTTP proxy. Everything works ok, I can see requests are passing through mitmdump. Now,…

---

## [API for data retrieval from mitmproxy by other apps](https://discourse.mitmproxy.org/t/api-for-data-retrieval-from-mitmproxy-by-other-apps/1584)

<div class="topic-metadata">

**Author:** [@mjgrzybek](https://discourse.mitmproxy.org/u/mjgrzybek)\
**Replies:** 0\
**Last updated:** [June 18, 2019, 4:34pm UTC](https://discourse.mitmproxy.org/t/api-for-data-retrieval-from-mitmproxy-by-other-apps/1584 "2019-06-18T16:34:30Z")

</div>

Does mitmproxy provide some API (e.g. REST) for other apps to use it’s data? If not, is it adressed? I’m thinking of something similar to http://www.mock-server.com/mock\_server/mockserver\_clients.html

---

## [Starting mitmproxy as subprocess](https://discourse.mitmproxy.org/t/starting-mitmproxy-as-subprocess/1582)

<div class="topic-metadata">

**Author:** [@Leif](https://discourse.mitmproxy.org/u/Leif)\
**Replies:** 0\
**Last updated:** [June 18, 2019, 8:13am UTC](https://discourse.mitmproxy.org/t/starting-mitmproxy-as-subprocess/1582 "2019-06-18T08:13:23Z")

</div>

Hi, I have a large python program that needs to start mitmproxy without halting execution of the subsequent code, so I’ve been trying to make this work with the subprocess package: process = Popen(\['mitmdump', '--mode=s…

---

## [Decryption port mirroring](https://discourse.mitmproxy.org/t/decryption-port-mirroring/1578)

<div class="topic-metadata">

**Author:** [@bdr](https://discourse.mitmproxy.org/u/bdr)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 6:27am UTC](https://discourse.mitmproxy.org/t/decryption-port-mirroring/1578 "2019-06-18T06:27:36Z")

</div>

I have MITMproxy working and it decrypts SSL traffic from one of my devices. I would like to send a cleartext copy of the traffic to another server (which can run some analysis tools on cleartext HTTP). How can I confi…

---

## [Cannot access mitm.it](https://discourse.mitmproxy.org/t/cannot-access-mitm-it/1575)

<div class="topic-metadata">

**Author:** [@Henloitme](https://discourse.mitmproxy.org/u/Henloitme)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 4:32pm UTC](https://discourse.mitmproxy.org/t/cannot-access-mitm-it/1575 "2019-06-17T16:32:32Z")

</div>

I downloaded v4.0.4 of mitmproxy for Windows and am running it on Windows 10. When I run mitmweb, and configure my iPhone’s network settings, I cannot access mitm.it on my phone. The pages does not load at all. I tried…

---

## [Socket.io with mitmproxy](https://discourse.mitmproxy.org/t/socket-io-with-mitmproxy/1570)

<div class="topic-metadata">

**Author:** [@kendang](https://discourse.mitmproxy.org/u/kendang)\
**Replies:** 0\
**Last updated:** [June 11, 2019, 4:56am UTC](https://discourse.mitmproxy.org/t/socket-io-with-mitmproxy/1570 "2019-06-11T04:56:49Z")

</div>

I use mitmproxy to capture socket.io websocket, and try to display the content. But I always get the following error. Can anyone give me some hints what is the problem? 127.0.0.1:52292: GET game.club/g\_5\_2/?EIO=3&transp…

---

## [Possible to listen on all ports?](https://discourse.mitmproxy.org/t/possible-to-listen-on-all-ports/1567)

<div class="topic-metadata">

**Author:** [@rolandas](https://discourse.mitmproxy.org/u/rolandas)\
**Replies:** 2\
**Last updated:** [June 10, 2019, 4:30pm UTC](https://discourse.mitmproxy.org/t/possible-to-listen-on-all-ports/1567 "2019-06-10T16:30:35Z")

</div>

Hello, and first of all this project looks great and so far the only mitm proxy that has worked for my needs. Just want to get some of your insights before digging deeper. I am looking to achieve the following function…

---

## [How save all request and response to a file?](https://discourse.mitmproxy.org/t/how-save-all-request-and-response-to-a-file/525)

<div class="topic-metadata">

**Author:** [@Laura](https://discourse.mitmproxy.org/u/Laura)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 2:40pm UTC](https://discourse.mitmproxy.org/t/how-save-all-request-and-response-to-a-file/525 "2019-06-06T14:40:47Z")

</div>

Hello Guys, I am new using the mitmproxy, and i am a little confused. Well I Installed the mitmproxy in my network, after, I installed the android CA inside a android device, everything work fine I can saw the Andro…

---

## [Cannot tcpdump traffic with transparent mode on local machine](https://discourse.mitmproxy.org/t/cannot-tcpdump-traffic-with-transparent-mode-on-local-machine/1562)

<div class="topic-metadata">

**Author:** [@idiotsavant](https://discourse.mitmproxy.org/u/idiotsavant)\
**Replies:** 0\
**Last updated:** [June 3, 2019, 10:36pm UTC](https://discourse.mitmproxy.org/t/cannot-tcpdump-traffic-with-transparent-mode-on-local-machine/1562 "2019-06-03T22:36:21Z")

</div>

I am using tcpdump to dump HTTPS traffic passing through mitmproxy (actually mitmdump) running in transparent mode. The proxy server (CentOS 6.x) faces the internet on eth0 and I was connecting to it as a gateway on eth1.…

---

## [Mitmproxy for ARM](https://discourse.mitmproxy.org/t/mitmproxy-for-arm/1559)

<div class="topic-metadata">

**Author:** [@Daniel41550](https://discourse.mitmproxy.org/u/Daniel41550)\
**Replies:** 0\
**Last updated:** [June 3, 2019, 7:23am UTC](https://discourse.mitmproxy.org/t/mitmproxy-for-arm/1559 "2019-06-03T07:23:15Z")

</div>

Where can I get ARM binaries for mitmproxy? I am unable to download them off of docker. I want to use them on my Android phone.

---

## [Script API doc for release version](https://discourse.mitmproxy.org/t/script-api-doc-for-release-version/1502)

<div class="topic-metadata">

**Author:** [@mikesxf](https://discourse.mitmproxy.org/u/mikesxf)\
**Replies:** 3\
**Last updated:** [May 29, 2019, 7:04pm UTC](https://discourse.mitmproxy.org/t/script-api-doc-for-release-version/1502 "2019-05-29T19:04:31Z")

</div>

I’m using mitmproxy to capture traffic with my own script (officially called addon). But I can’t find the detailed API doc on web docs (https://docs.mitmproxy.org/archive/v3/addons-overview/) like before (v2 or older ver…

---

## [Capturing digest authentication credentials possible?](https://discourse.mitmproxy.org/t/capturing-digest-authentication-credentials-possible/1550)

<div class="topic-metadata">

**Author:** [@gitxmax](https://discourse.mitmproxy.org/u/gitxmax)\
**Replies:** 0\
**Last updated:** [May 26, 2019, 1:00pm UTC](https://discourse.mitmproxy.org/t/capturing-digest-authentication-credentials-possible/1550 "2019-05-26T13:00:11Z")

</div>

Hello, I have set up a lighttpd server on port 80, setup mitmproxy in transparent mode and redirected the ip rules from port 80 to 8080. While mitmproxy captures the request headers, the entered passwords are totally in…

---

## [Errors configuring transparent proxy on Mac OS (It doesn't work!)](https://discourse.mitmproxy.org/t/errors-configuring-transparent-proxy-on-mac-os-it-doesnt-work/1548)

<div class="topic-metadata">

**Author:** [@ConfusedVorlon](https://discourse.mitmproxy.org/u/ConfusedVorlon)\
**Replies:** 0\
**Last updated:** [May 23, 2019, 2:16pm UTC](https://discourse.mitmproxy.org/t/errors-configuring-transparent-proxy-on-mac-os-it-doesnt-work/1548 "2019-05-23T14:16:52Z")

</div>

I’m trying to set up a transparent proxy on Mac OS to intercept secure websocket traffic on port 3001. I can’t use a regular proxy as iOS doesn’t respect proxy settings for the websocket traffic I have followed the doc…

---

## [Server-side replay possible with client directed through SOCKS proxy?](https://discourse.mitmproxy.org/t/server-side-replay-possible-with-client-directed-through-socks-proxy/1542)

<div class="topic-metadata">

**Author:** [@andrewMoz](https://discourse.mitmproxy.org/u/andrewMoz)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 4:06pm UTC](https://discourse.mitmproxy.org/t/server-side-replay-possible-with-client-directed-through-socks-proxy/1542 "2019-05-13T16:06:26Z")

</div>

This is the configuration I’m trying to achieve: The client (web browser) is configured to use a local SOCKS proxy (e.g. running at 127.0.0.1:1080) The SOCKS proxy (whose purpose is network throttling) redirects outbou…

---

## [How to access upstream server from responseheaders event?](https://discourse.mitmproxy.org/t/how-to-access-upstream-server-from-responseheaders-event/1539)

<div class="topic-metadata">

**Author:** [@appunni-dishq](https://discourse.mitmproxy.org/u/appunni-dishq)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 7:14am UTC](https://discourse.mitmproxy.org/t/how-to-access-upstream-server-from-responseheaders-event/1539 "2019-05-10T07:14:40Z")

</div>

from .mechanism import StatManager import mitmproxy class StatAddon: def responseheaders(self, flow: mitmproxy.http.HTTPFlow): """ HTTP response headers were successfully read. At this point, …

---

## [Mitmproxy Docker examples?](https://discourse.mitmproxy.org/t/mitmproxy-docker-examples/731)

<div class="topic-metadata">

**Author:** [@Karu](https://discourse.mitmproxy.org/u/Karu)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 12:01am UTC](https://discourse.mitmproxy.org/t/mitmproxy-docker-examples/731 "2019-05-10T00:01:05Z")

</div>

Can anyone add some user interacation examples of mitmproxy in docker container? How to use the mitmproxy docker container? I am searching some examples, how other users are using mitmproxy docker container.

---

## [Is there a way to install mitmproxy certificates on client when starting?](https://discourse.mitmproxy.org/t/is-there-a-way-to-install-mitmproxy-certificates-on-client-when-starting/1534)

<div class="topic-metadata">

**Author:** [@adr-arroyo](https://discourse.mitmproxy.org/u/adr-arroyo)\
**Replies:** 0\
**Last updated:** [May 3, 2019, 11:14am UTC](https://discourse.mitmproxy.org/t/is-there-a-way-to-install-mitmproxy-certificates-on-client-when-starting/1534 "2019-05-03T11:14:43Z")

</div>

Hello everyone! I have configured a raspberry pi as an ap running mitmproxy following this tutorial. I would like that, whenever any client connects to the pi, they are asked somehow (with a captive portal or anything) …

---

## [Possible to playback HTTP/2 with upstream cert sniffing disabled (upstream\_cert=false)](https://discourse.mitmproxy.org/t/possible-to-playback-http-2-with-upstream-cert-sniffing-disabled-upstream-cert-false/1394)

<div class="topic-metadata">

**Author:** [@andrewMoz](https://discourse.mitmproxy.org/u/andrewMoz)\
**Replies:** 6\
**Last updated:** [May 6, 2019, 8:19am UTC](https://discourse.mitmproxy.org/t/possible-to-playback-http-2-with-upstream-cert-sniffing-disabled-upstream-cert-false/1394 "2019-05-06T08:19:04Z")

</div>

We’re using mitmproxy to playback recorded sessions. The live TLS connections to upstream servers were introducing noise into our performance tests so we’re attempting to disable them with the “upstream\_cert=false” or “…

---

## [Server Replay Without Timing](https://discourse.mitmproxy.org/t/server-replay-without-timing/1015)

<div class="topic-metadata">

**Author:** [@davertron](https://discourse.mitmproxy.org/u/davertron)\
**Replies:** 2\
**Last updated:** [May 3, 2019, 9:43am UTC](https://discourse.mitmproxy.org/t/server-replay-without-timing/1015 "2019-05-03T09:43:12Z")

</div>

I’m trying to understand the server replay feature a little better. What I want to do is pretty straight-forward: The first time a server makes a request to a url, serve the response and then cache it locally. Every sub…

---

## [Using mitmproxy with tor](https://discourse.mitmproxy.org/t/using-mitmproxy-with-tor/303)

<div class="topic-metadata">

**Author:** [@DigiAngel](https://discourse.mitmproxy.org/u/DigiAngel)\
**Replies:** 1\
**Last updated:** [April 28, 2019, 6:44pm UTC](https://discourse.mitmproxy.org/t/using-mitmproxy-with-tor/303 "2019-04-28T18:44:01Z")

</div>

Hello again! It's Friday the 13th and I figured I would try to hammer this out once and for all. I have always want to get a proxy that can inspect traffic working with Tor. I'm not even sure this is feasible, so I'm…

[Previous page](https://discourse.mitmproxy.org/c/help/5.md)

[Next page](https://discourse.mitmproxy.org/c/help/5.md?page=2)
