# help

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

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

**Page:** 16

---

## [Mitmdump - large memory consumption](https://discourse.mitmproxy.org/t/mitmdump-large-memory-consumption/197)

<div class="topic-metadata">

**Author:** [@drake-adl](https://discourse.mitmproxy.org/u/drake-adl)\
**Replies:** 1\
**Last updated:** [October 15, 2016, 2:35am UTC](https://discourse.mitmproxy.org/t/mitmdump-large-memory-consumption/197 "2016-10-15T02:35:06Z")

</div>

I'm running mitmdump in upstream mode and use it to block specific requests. After starting mitmdump and browsing several websites, mitmdump consumes over 1.5G of memory. I don't see that it is leaking (I restart it …

---

## [Need help sniffing traffic between Android/iOS game and its server](https://discourse.mitmproxy.org/t/need-help-sniffing-traffic-between-android-ios-game-and-its-server/188)

<div class="topic-metadata">

**Author:** [@celebeast](https://discourse.mitmproxy.org/u/celebeast)\
**Replies:** 4\
**Last updated:** [October 14, 2016, 3:28am UTC](https://discourse.mitmproxy.org/t/need-help-sniffing-traffic-between-android-ios-game-and-its-server/188 "2016-10-14T03:28:43Z")

</div>

Hello devs and the community, So as the topic says, I am having difficulties decrypting traffic between a phone MMORPG and their server. At first, I used Wireshark to analyse the traffic, and that's when I realised the…

---

## [Exported code/curl is not copied to clipboard](https://discourse.mitmproxy.org/t/exported-code-curl-is-not-copied-to-clipboard/193)

<div class="topic-metadata">

**Author:** [@runa](https://discourse.mitmproxy.org/u/runa)\
**Replies:** 1\
**Last updated:** [October 14, 2016, 2:44am UTC](https://discourse.mitmproxy.org/t/exported-code-curl-is-not-copied-to-clipboard/193 "2016-10-14T02:44:52Z")

</div>

I suspect there's something wrong with my "clipboard" (using ubuntu/i3 here), but I'm not sure how to confirm this. If I export a request to curl, the curl line is supposed to be copied to the clipboard, but it's not t…

---

## [Is intercept working in the HEAD of master?](https://discourse.mitmproxy.org/t/is-intercept-working-in-the-head-of-master/186)

<div class="topic-metadata">

**Author:** [@mkagenius](https://discourse.mitmproxy.org/u/mkagenius)\
**Replies:** 1\
**Last updated:** [October 9, 2016, 2:11am UTC](https://discourse.mitmproxy.org/t/is-intercept-working-in-the-head-of-master/186 "2016-10-09T02:11:32Z")

</div>

It seems the intercept is not working in the head of the master, recently? My code is little messed up (with my changes) but i just now synced with master and the intercept is not working.. If its all good in the m…

---

## [Loop decrypted traffic through an external gateway](https://discourse.mitmproxy.org/t/loop-decrypted-traffic-through-an-external-gateway/185)

<div class="topic-metadata">

**Author:** [@rofa](https://discourse.mitmproxy.org/u/rofa)\
**Replies:** 2\
**Last updated:** [October 6, 2016, 3:12pm UTC](https://discourse.mitmproxy.org/t/loop-decrypted-traffic-through-an-external-gateway/185 "2016-10-06T15:12:18Z")

</div>

Routed or transparent doesn't matter, just want the decrypted traffic to pass through an external device before it's encrypted and sent away to it's destination. Sending a copy of the traffic will not work, need to hav…

---

## [Setup help needed](https://discourse.mitmproxy.org/t/setup-help-needed/181)

<div class="topic-metadata">

**Author:** [@dozens](https://discourse.mitmproxy.org/u/dozens)\
**Replies:** 2\
**Last updated:** [September 29, 2016, 3:20pm UTC](https://discourse.mitmproxy.org/t/setup-help-needed/181 "2016-09-29T15:20:44Z")

</div>

Hello. I am trying to get mitmproxy setup on Ubuntu 16.04. My py.test hangs in test\_server.py and has a "F" instead of a "." for test\_proxy.py (see below). The tox test also fails for py35 despite having python3 inst…

---

## [Just starting out, have some questions](https://discourse.mitmproxy.org/t/just-starting-out-have-some-questions/179)

<div class="topic-metadata">

**Author:** [@DigiAngel](https://discourse.mitmproxy.org/u/DigiAngel)\
**Replies:** 4\
**Last updated:** [September 29, 2016, 1:58am UTC](https://discourse.mitmproxy.org/t/just-starting-out-have-some-questions/179 "2016-09-29T01:58:06Z")

</div>

Hey all, So I'm currently using Squid to proxy with ACL's and it's worked fine so far. I'd like to try mitmproxy, however after looking through the forums I see two questions that didn't really appear to get answered,…

---

## [Trying to import mitmproxy into python3 project](https://discourse.mitmproxy.org/t/trying-to-import-mitmproxy-into-python3-project/171)

<div class="topic-metadata">

**Author:** [@blahblahuser](https://discourse.mitmproxy.org/u/blahblahuser)\
**Replies:** 5\
**Last updated:** [September 29, 2016, 1:43am UTC](https://discourse.mitmproxy.org/t/trying-to-import-mitmproxy-into-python3-project/171 "2016-09-29T01:43:23Z")

</div>

Hi There, We are trying to use mitmproxy for our internal testing tool which written in Python3. Then I do from mitmproxy import flow it doesn work( not importing) We are -reusing flow.FlowReader part . Can you please…

---

## [How run commands within mitmdump?](https://discourse.mitmproxy.org/t/how-run-commands-within-mitmdump/176)

<div class="topic-metadata">

**Author:** [@paskyorg](https://discourse.mitmproxy.org/u/paskyorg)\
**Replies:** 3\
**Last updated:** [September 26, 2016, 2:42am UTC](https://discourse.mitmproxy.org/t/how-run-commands-within-mitmdump/176 "2016-09-26T02:42:52Z")

</div>

I'm using mitmdump and I need make new requests from a web page (test.html). By example, in my inline script (test.py) I have a python function like this: def makeNewRequest(data): context, flow = savedFlow, savedCo…

---

## [Sending additional requests with mitmproxy](https://discourse.mitmproxy.org/t/sending-additional-requests-with-mitmproxy/168)

<div class="topic-metadata">

**Author:** [@blark](https://discourse.mitmproxy.org/u/blark)\
**Replies:** 1\
**Last updated:** [September 24, 2016, 3:29am UTC](https://discourse.mitmproxy.org/t/sending-additional-requests-with-mitmproxy/168 "2016-09-24T03:29:14Z")

</div>

I want to generate an arbitrary number of requests automatically when a certain URL is seen in the proxy. For example... if "https://example.com/page1" is requested I want to send 9 additional requests for page2...pag…

---

## [Inline-script sslstrip.py with flow.request.headers in response function](https://discourse.mitmproxy.org/t/inline-script-sslstrip-py-with-flow-request-headers-in-response-function/169)

<div class="topic-metadata">

**Author:** [@phackt](https://discourse.mitmproxy.org/u/phackt)\
**Replies:** 2\
**Last updated:** [September 14, 2016, 11:48pm UTC](https://discourse.mitmproxy.org/t/inline-script-sslstrip-py-with-flow-request-headers-in-response-function/169 "2016-09-14T23:48:32Z")

</div>

Hello, You can check here the sslstrip.py script: 1. https://github.com/mitmproxy/mitmproxy/blob/0.17.x/examples/sslstrip.py 2. https://github.com/mitmproxy/mitmproxy/blob/master/examples/sslstrip.py For this scrip…

---

## [Keep encountering \`Script error\` when modifying response](https://discourse.mitmproxy.org/t/keep-encountering-script-error-when-modifying-response/163)

<div class="topic-metadata">

**Author:** [@newhope](https://discourse.mitmproxy.org/u/newhope)\
**Replies:** 3\
**Last updated:** [September 10, 2016, 1:38am UTC](https://discourse.mitmproxy.org/t/keep-encountering-script-error-when-modifying-response/163 "2016-09-10T01:38:24Z")

</div>

Hi, I'm new to Python either mitmproxy, just keep encountering script error when using the below sample script: def response(flow): flow.response.headers\["newheader"\] = "foo" Steps to reproduce the problem: I…

---

## [Running handle\_request and handle\_response in parallel](https://discourse.mitmproxy.org/t/running-handle-request-and-handle-response-in-parallel/150)

<div class="topic-metadata">

**Author:** [@0makrov](https://discourse.mitmproxy.org/u/0makrov)\
**Replies:** 1\
**Last updated:** [September 4, 2016, 11:19pm UTC](https://discourse.mitmproxy.org/t/running-handle-request-and-handle-response-in-parallel/150 "2016-09-04T23:19:25Z")

</div>

Hey! I'm using mitmproxy 0.17 in the way like in flowbasic.py example My handle\_request and handle\_response functions are rather slow, I can't use decorator @concurrent here, is there any way to run my code in parallel?

---

## [Mitmproxy not working with urls which have 'under\_scores'](https://discourse.mitmproxy.org/t/mitmproxy-not-working-with-urls-which-have-under-scores/156)

<div class="topic-metadata">

**Author:** [@qakapil](https://discourse.mitmproxy.org/u/qakapil)\
**Replies:** 3\
**Last updated:** [September 4, 2016, 11:12pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-not-working-with-urls-which-have-under-scores/156 "2016-09-04T23:12:50Z")

</div>

Hi, I have been using mitmproxy to test our iOS app and till now it was working really well. But with the latest build of our app the developers have made some changes to the way device talks to the API end points and no…

---

## [Installing mitmproxy with pip, having error](https://discourse.mitmproxy.org/t/installing-mitmproxy-with-pip-having-error/144)

<div class="topic-metadata">

**Author:** [@encola](https://discourse.mitmproxy.org/u/encola)\
**Replies:** 4\
**Last updated:** [August 24, 2016, 9:31am UTC](https://discourse.mitmproxy.org/t/installing-mitmproxy-with-pip-having-error/144 "2016-08-24T09:31:04Z")

</div>

If I install it through pip, I obtain this error. Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in from mitmproxy.main import mitmproxy File "/Library/Python/2.7/sit…

---

## [How to use console replace command?](https://discourse.mitmproxy.org/t/how-to-use-console-replace-command/59)

<div class="topic-metadata">

**Author:** [@Max](https://discourse.mitmproxy.org/u/Max)\
**Replies:** 6\
**Last updated:** [August 15, 2016, 2:10pm UTC](https://discourse.mitmproxy.org/t/how-to-use-console-replace-command/59 "2016-08-15T14:10:26Z")

</div>

I'm trying to use mitmproxy as a content filter proxy, but isn\`t work. How to use it? Can somebody point me to any manual? I found just http://docs.mitmproxy.org/en/stable/features/replacements.html but when i started m…

---

## [How are empty headers displayed?](https://discourse.mitmproxy.org/t/how-are-empty-headers-displayed/138)

<div class="topic-metadata">

**Author:** [@Tobias](https://discourse.mitmproxy.org/u/Tobias)\
**Replies:** 1\
**Last updated:** [August 15, 2016, 8:52am UTC](https://discourse.mitmproxy.org/t/how-are-empty-headers-displayed/138 "2016-08-15T08:52:06Z")

</div>

When mitmproxy shows an HTTP header as "", does that mean it's empty or that it consists of two quote characters?

---

## [Transparent Proxying on a single machine - iptables](https://discourse.mitmproxy.org/t/transparent-proxying-on-a-single-machine-iptables/97)

<div class="topic-metadata">

**Author:** [@alexw92](https://discourse.mitmproxy.org/u/alexw92)\
**Replies:** 2\
**Last updated:** [August 14, 2016, 8:28pm UTC](https://discourse.mitmproxy.org/t/transparent-proxying-on-a-single-machine-iptables/97 "2016-08-14T20:28:48Z")

</div>

Hi :smiley: I'd like to proxy trasparent on a single system ( run mitmproxy -T) on a ubuntu while sending traffic out of the same system. The problem is the ip tables settings. I used sudo iptables -t nat -A OUTPUT -…

---

## [Cannot install: "command 'x86\_64-linux-gnu-gcc' failed with exit status 1"](https://discourse.mitmproxy.org/t/cannot-install-command-x86-64-linux-gnu-gcc-failed-with-exit-status-1/132)

<div class="topic-metadata">

**Author:** [@kuba-orlik](https://discourse.mitmproxy.org/u/kuba-orlik)\
**Replies:** 7\
**Last updated:** [August 10, 2016, 4:24am UTC](https://discourse.mitmproxy.org/t/cannot-install-command-x86-64-linux-gnu-gcc-failed-with-exit-status-1/132 "2016-08-10T04:24:55Z")

</div>

I have trouble installing mitmproxy on my Ubuntu 16.04. When installing, I get the following output: (I pasted only the part that seems significant to this issue for brevity) creating build/temp.linux-x86\_64-3.5/b…

---

## [Replaying Saved Traffic via Proxy](https://discourse.mitmproxy.org/t/replaying-saved-traffic-via-proxy/81)

<div class="topic-metadata">

**Author:** [@drdrwhite](https://discourse.mitmproxy.org/u/drdrwhite)\
**Replies:** 4\
**Last updated:** [August 9, 2016, 9:11am UTC](https://discourse.mitmproxy.org/t/replaying-saved-traffic-via-proxy/81 "2016-08-09T09:11:58Z")

</div>

After saving traffic using mitmdump mitmdump -w scratch/traffic I then want to replay the GET requests: mitmdump -nc scratch/traffic "~m GET" However, I'd like to send these out via a proxy, i.e. I need to be abl…

---

## [Is it possible to view the original conversation?](https://discourse.mitmproxy.org/t/is-it-possible-to-view-the-original-conversation/120)

<div class="topic-metadata">

**Author:** [@pcolmer](https://discourse.mitmproxy.org/u/pcolmer)\
**Replies:** 5\
**Last updated:** [August 9, 2016, 7:59am UTC](https://discourse.mitmproxy.org/t/is-it-possible-to-view-the-original-conversation/120 "2016-08-09T07:59:20Z")

</div>

From what I can tell, if I use mitmdump to save traffic, client replay sends the client side of the conversation to the server all over again so that I get "fresh" replies from the server. How can I look at what mitmdu…

---

## [Is there a way to block request using mitmproxy UI?](https://discourse.mitmproxy.org/t/is-there-a-way-to-block-request-using-mitmproxy-ui/130)

<div class="topic-metadata">

**Author:** [@ndhydev](https://discourse.mitmproxy.org/u/ndhydev)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 2:40am UTC](https://discourse.mitmproxy.org/t/is-there-a-way-to-block-request-using-mitmproxy-ui/130 "2016-08-09T02:40:53Z")

</div>

Hi the Team, or hi Max. I am just install version 0.18 success. I know that mitmproxy is able to monitoring traffic. But I wonder if mitmproxy UI have some feature allow me do deny/block request by pattern, such as blo…

---

## [Issues with transparent mode](https://discourse.mitmproxy.org/t/issues-with-transparent-mode/126)

<div class="topic-metadata">

**Author:** [@arcnor](https://discourse.mitmproxy.org/u/arcnor)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 1:58am UTC](https://discourse.mitmproxy.org/t/issues-with-transparent-mode/126 "2016-08-09T01:58:40Z")

</div>

Hi, First of all, I'm very sorry for asking questions about this, and I've seen the issue tracker filled up with problems very similar to mine. However, I can't find the solution after hours of tinkering, so hopefull…

---

## [Simulate slow netowrk connection](https://discourse.mitmproxy.org/t/simulate-slow-netowrk-connection/114)

<div class="topic-metadata">

**Author:** [@qakapil](https://discourse.mitmproxy.org/u/qakapil)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 1:47am UTC](https://discourse.mitmproxy.org/t/simulate-slow-netowrk-connection/114 "2016-08-09T01:47:15Z")

</div>

Hi, I am using mitmproxy to test and monitor API calls for our iOS app. Now my next use-case is to test how our app reacts in slow network conditions. I was wondering how I can use Mitmproxy to simulate a slow network …

---

## [How can I search in a saved flow?](https://discourse.mitmproxy.org/t/how-can-i-search-in-a-saved-flow/118)

<div class="topic-metadata">

**Author:** [@TizianoPerrucci](https://discourse.mitmproxy.org/u/TizianoPerrucci)\
**Replies:** 1\
**Last updated:** [August 9, 2016, 1:35am UTC](https://discourse.mitmproxy.org/t/how-can-i-search-in-a-saved-flow/118 "2016-08-09T01:35:10Z")

</div>

Hi, I've saved a flow using .mitmdump -w outfile and now I want to search for invalid post requests that have got 400. How can I do that? I've reopened the flow with mitmproxy -nr outfile, but I can't use the / comma…

---

## ["Failed building wheel for brotlipy" error message when install using dev.sh](https://discourse.mitmproxy.org/t/failed-building-wheel-for-brotlipy-error-message-when-install-using-dev-sh/128)

<div class="topic-metadata">

**Author:** [@ndhydev](https://discourse.mitmproxy.org/u/ndhydev)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 1:24am UTC](https://discourse.mitmproxy.org/t/failed-building-wheel-for-brotlipy-error-message-when-install-using-dev-sh/128 "2016-08-09T01:24:57Z")

</div>

Long before, I always install mitmproxy using pip. Think like some kind of stable sudo -H pip install mitmproxy. But it always give me 0.17 version. We know that mitmproxy master is updated to 0.18. I want to check if…

---

## [Cookies disabled, for Google account](https://discourse.mitmproxy.org/t/cookies-disabled-for-google-account/57)

<div class="topic-metadata">

**Author:** [@Tux](https://discourse.mitmproxy.org/u/Tux)\
**Replies:** 10\
**Last updated:** [August 5, 2016, 1:50am UTC](https://discourse.mitmproxy.org/t/cookies-disabled-for-google-account/57 "2016-08-05T01:50:00Z")

</div>

Hi, I noticed something, when playing with MITMproxy. When I want to connect to my gmail account (of course, through MITMproxy), I get the following error: "Oops! Your browser seems to have cookies disabed"... \[imag…

---

## [Emulate Charles Proxy's Map Local](https://discourse.mitmproxy.org/t/emulate-charles-proxys-map-local/116)

<div class="topic-metadata">

**Author:** [@synaestheory](https://discourse.mitmproxy.org/u/synaestheory)\
**Replies:** 12\
**Last updated:** [August 4, 2016, 10:00pm UTC](https://discourse.mitmproxy.org/t/emulate-charles-proxys-map-local/116 "2016-08-04T22:00:59Z")

</div>

I am trying to emulate Charles Proxy's Map Local feature. I have tried a few different things which seem relatively simple but I cannot seem to get them to work. To test out what I am doing I am trying to access htt…

---

## [Unable to change hosts if SSL is involved](https://discourse.mitmproxy.org/t/unable-to-change-hosts-if-ssl-is-involved/100)

<div class="topic-metadata">

**Author:** [@ffernand](https://discourse.mitmproxy.org/u/ffernand)\
**Replies:** 4\
**Last updated:** [August 2, 2016, 12:11pm UTC](https://discourse.mitmproxy.org/t/unable-to-change-hosts-if-ssl-is-involved/100 "2016-08-02T12:11:41Z")

</div>

I've been trying to redirect specific urls from one host to another based on changes in the path. And for the most part, this works great when doing this over plain http. def request(context, flow): if 'www.host.c…

---

## [New to MITMProxy](https://discourse.mitmproxy.org/t/new-to-mitmproxy/105)

<div class="topic-metadata">

**Author:** [@MaxGoh](https://discourse.mitmproxy.org/u/MaxGoh)\
**Replies:** 1\
**Last updated:** [July 30, 2016, 3:18am UTC](https://discourse.mitmproxy.org/t/new-to-mitmproxy/105 "2016-07-30T03:18:52Z")

</div>

Hi, I'm new to MITMProxy. I tried following the guide but current stucked on the certification part. I can't seem to see any traffic passing through mitm.it, I'm using ArchLinux, and have managed to install mitmproxy. Ca…

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

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