# help

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

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

**Page:** 15

---

## [How to replay requests that were recorded in reverse proxy mode](https://discourse.mitmproxy.org/t/how-to-replay-requests-that-were-recorded-in-reverse-proxy-mode/292)

<div class="topic-metadata">

**Author:** [@rodsenra](https://discourse.mitmproxy.org/u/rodsenra)\
**Replies:** 3\
**Last updated:** [January 8, 2017, 1:04am UTC](https://discourse.mitmproxy.org/t/how-to-replay-requests-that-were-recorded-in-reverse-proxy-mode/292 "2017-01-08T01:04:11Z")

</div>

Hi, I need some help setting up mitmproxy to replay requests that were recorded in reverse proxy mode. I have recorded it with: mitmdump -w api.dump -p 1080 -R http://remoteapi.somewhere.com:80 I try to replay …

---

## [Is it possible to stream request body?](https://discourse.mitmproxy.org/t/is-it-possible-to-stream-request-body/279)

<div class="topic-metadata">

**Author:** [@myguelraton](https://discourse.mitmproxy.org/u/myguelraton)\
**Replies:** 1\
**Last updated:** [January 7, 2017, 8:15pm UTC](https://discourse.mitmproxy.org/t/is-it-possible-to-stream-request-body/279 "2017-01-07T20:15:50Z")

</div>

there is a "--stream" option to stream the response body to the client. is there a way to stream the request body to the server? in other words, i don't want the proxy to buffer the request. i am trying to test large …

---

## [Understanding 0.18.2 redirect\_requests example script](https://discourse.mitmproxy.org/t/understanding-0-18-2-redirect-requests-example-script/296)

<div class="topic-metadata">

**Author:** [@ironhokie](https://discourse.mitmproxy.org/u/ironhokie)\
**Replies:** 1\
**Last updated:** [January 7, 2017, 8:09pm UTC](https://discourse.mitmproxy.org/t/understanding-0-18-2-redirect-requests-example-script/296 "2017-01-07T20:09:17Z")

</div>

I'm using mitmproxy0.18.2 w/Python3.5.2, with a pretty complex input script. Everything works great, except for an issue generating responses to particular requests. I tore it down to the basic example (https://github.co…

---

## [Error running mitmproxy after install](https://discourse.mitmproxy.org/t/error-running-mitmproxy-after-install/284)

<div class="topic-metadata">

**Author:** [@markab](https://discourse.mitmproxy.org/u/markab)\
**Replies:** 1\
**Last updated:** [January 4, 2017, 4:20pm UTC](https://discourse.mitmproxy.org/t/error-running-mitmproxy-after-install/284 "2017-01-04T16:20:26Z")

</div>

hi pals! I'm having the following error message after installing mitmproxy. Installs works fine, but when I try to run for the very first time, Iget this message root@debian:~# /root/.local/bin/mitmproxy --host Traceb…

---

## [How to settle this pyinstaller error?](https://discourse.mitmproxy.org/t/how-to-settle-this-pyinstaller-error/277)

<div class="topic-metadata">

**Author:** [@schunlee](https://discourse.mitmproxy.org/u/schunlee)\
**Replies:** 1\
**Last updated:** [December 30, 2016, 7:56pm UTC](https://discourse.mitmproxy.org/t/how-to-settle-this-pyinstaller-error/277 "2016-12-30T19:56:27Z")

</div>

I use pyinstaller to package my application, like this below, pyinstaller semi-auto\_configuration\_checker/proxy\_checker.py but error occurred here: Failed to execute script proxy\_checker Traceback (most recent cal…

---

## [How to view the proxy server's URL](https://discourse.mitmproxy.org/t/how-to-view-the-proxy-servers-url/23)

<div class="topic-metadata">

**Author:** [@Eugene](https://discourse.mitmproxy.org/u/Eugene)\
**Replies:** 11\
**Last updated:** [December 30, 2016, 2:59am UTC](https://discourse.mitmproxy.org/t/how-to-view-the-proxy-servers-url/23 "2016-12-30T02:59:50Z")

</div>

Hello, I would like to control mitmproxy's behavior by passing it instructions in the proxy URL's path. For example, if mitmproxy is running at http://0.0.0.0:8080, a client might toggle debug-level logging by proxyi…

---

## [Mitmproxy for windows does not work](https://discourse.mitmproxy.org/t/mitmproxy-for-windows-does-not-work/272)

<div class="topic-metadata">

**Author:** [@Slini11](https://discourse.mitmproxy.org/u/Slini11)\
**Replies:** 3\
**Last updated:** [December 27, 2016, 1:09pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-for-windows-does-not-work/272 "2016-12-27T13:09:43Z")

</div>

Hi, i heard about mitmproxy this morning and was very happy about the new v1.0 with Windows-support :-). I used the installer and everything worked fine. So I started the mitmproxy ui and it said "Proxy server listenin…

---

## [How to use as a Library?](https://discourse.mitmproxy.org/t/how-to-use-as-a-library/240)

<div class="topic-metadata">

**Author:** [@ja8zyjits](https://discourse.mitmproxy.org/u/ja8zyjits)\
**Replies:** 4\
**Last updated:** [December 26, 2016, 4:50pm UTC](https://discourse.mitmproxy.org/t/how-to-use-as-a-library/240 "2016-12-26T16:50:17Z")

</div>

Hi, How can i use Mitproxy as a library? say i want the library to be imported, change the proxy settings like port number, forward it through another proxy etc and then run this new script which will in turn act as a …

---

## [How to use external link to point to "mitm.it"](https://discourse.mitmproxy.org/t/how-to-use-external-link-to-point-to-mitm-it/255)

<div class="topic-metadata">

**Author:** [@knight](https://discourse.mitmproxy.org/u/knight)\
**Replies:** 3\
**Last updated:** [December 25, 2016, 2:17pm UTC](https://discourse.mitmproxy.org/t/how-to-use-external-link-to-point-to-mitm-it/255 "2016-12-25T14:17:25Z")

</div>

Hello, i am running a fake portal and mitmproxy at the same time. How do point the link in my fake portal to mitm.it. When uset clicks the link mitm CA portal/page opens up in their browser. How does mitmproxy serves…

---

## [MITM on Fake AP through android devices](https://discourse.mitmproxy.org/t/mitm-on-fake-ap-through-android-devices/261)

<div class="topic-metadata">

**Author:** [@Nedgui](https://discourse.mitmproxy.org/u/Nedgui)\
**Replies:** 4\
**Last updated:** [December 22, 2016, 2:11pm UTC](https://discourse.mitmproxy.org/t/mitm-on-fake-ap-through-android-devices/261 "2016-12-22T14:11:49Z")

</div>

Hey guys, anyone have been experienced on MITM through mobile or any access point? Appreciated any explainations or bullet points to pin point how this mitm going. I did once before but the results are failed.

---

## [Errors Running dev.sh](https://discourse.mitmproxy.org/t/errors-running-dev-sh/248)

<div class="topic-metadata">

**Author:** [@nooneischgl](https://discourse.mitmproxy.org/u/nooneischgl)\
**Replies:** 3\
**Last updated:** [December 21, 2016, 10:33pm UTC](https://discourse.mitmproxy.org/t/errors-running-dev-sh/248 "2016-12-21T22:33:03Z")

</div>

I am getting the following error message when running dev.sh Command "/home/chase/mitm/mitmproxy/venv3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/tmp/pip-build-hz5dkw6k/cryptography/setup.py';f=getattr(…

---

## [Unable to get transparent proxying working (MacOS Sierra)](https://discourse.mitmproxy.org/t/unable-to-get-transparent-proxying-working-macos-sierra/264)

<div class="topic-metadata">

**Author:** [@runar](https://discourse.mitmproxy.org/u/runar)\
**Replies:** 0\
**Last updated:** [December 21, 2016, 10:04am UTC](https://discourse.mitmproxy.org/t/unable-to-get-transparent-proxying-working-macos-sierra/264 "2016-12-21T10:04:27Z")

</div>

Hi, Mitmproxy works fine in regular mode, but when I try to run the transparent proxy, no traffic seems to reach my server (running mitmproxy). I’ve followed the guide (http://docs.mitmproxy.org/en/stable/transparent/o…

---

## [Can't install mitmproxy on El Capitan 10.11.6](https://discourse.mitmproxy.org/t/cant-install-mitmproxy-on-el-capitan-10-11-6/258)

<div class="topic-metadata">

**Author:** [@astoriakiddd](https://discourse.mitmproxy.org/u/astoriakiddd)\
**Replies:** 1\
**Last updated:** [December 17, 2016, 8:04pm UTC](https://discourse.mitmproxy.org/t/cant-install-mitmproxy-on-el-capitan-10-11-6/258 "2016-12-17T20:04:28Z")

</div>

Hi all, I am having some issues with installing mitmproxy on El Capitan 10.11.6 Is this a known issue? Please advise. I haven’t found a solution on Google yet. $ sudo pip install mitmproxy The directory ‘/Users/kelv…

---

## [Inline script loaded several times with mitmproxy/mitmdump log option](https://discourse.mitmproxy.org/t/inline-script-loaded-several-times-with-mitmproxy-mitmdump-log-option/238)

<div class="topic-metadata">

**Author:** [@phackt](https://discourse.mitmproxy.org/u/phackt)\
**Replies:** 4\
**Last updated:** [December 12, 2016, 6:40pm UTC](https://discourse.mitmproxy.org/t/inline-script-loaded-several-times-with-mitmproxy-mitmdump-log-option/238 "2016-12-12T18:40:47Z")

</div>

Hello, i'm facing an issue with mitmproxy/mitmdump v0.18.1 and v0.18.2 (everything was working fine with v0.17.1). When you run this command: mitmproxy --script ./sslstrip.py --eventlog You surf on http://www.ameli.f…

---

## [Mitmproxy error behavior](https://discourse.mitmproxy.org/t/mitmproxy-error-behavior/249)

<div class="topic-metadata">

**Author:** [@emeitner](https://discourse.mitmproxy.org/u/emeitner)\
**Replies:** 2\
**Last updated:** [December 12, 2016, 5:02pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-error-behavior/249 "2016-12-12T17:02:04Z")

</div>

I am using the Mitmproxy scripting API while running in transparent mode to selectively handle some requests using the request() function. The script will handle some requests to the target server and others it will cont…

---

## [Are there any script examples for creating a GET/POST/PUT?](https://discourse.mitmproxy.org/t/are-there-any-script-examples-for-creating-a-get-post-put/134)

<div class="topic-metadata">

**Author:** [@Mk1Escort](https://discourse.mitmproxy.org/u/Mk1Escort)\
**Replies:** 2\
**Last updated:** [December 9, 2016, 4:00pm UTC](https://discourse.mitmproxy.org/t/are-there-any-script-examples-for-creating-a-get-post-put/134 "2016-12-09T16:00:55Z")

</div>

I know you can manually create a GET/POST/PUT from the ui, but I was wondering if it's possible via script. I'd like to take information from a previous GET response and use it to create a POST from scratch.

---

## [SSLv3\_server\_method](https://discourse.mitmproxy.org/t/sslv3-server-method/246)

<div class="topic-metadata">

**Author:** [@ievgenii\_2pv](https://discourse.mitmproxy.org/u/ievgenii_2pv)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 2:29pm UTC](https://discourse.mitmproxy.org/t/sslv3-server-method/246 "2016-12-08T14:29:33Z")

</div>

Hello, I’m trying to run mitmproxy and getting the following error: Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in \<module\> from mitmproxy.main import mitmproxy File "/usr/local…

---

## [Replay\_request does not seem to trigger request or response scripts](https://discourse.mitmproxy.org/t/replay-request-does-not-seem-to-trigger-request-or-response-scripts/32)

<div class="topic-metadata">

**Author:** [@twaway](https://discourse.mitmproxy.org/u/twaway)\
**Replies:** 10\
**Last updated:** [November 19, 2016, 9:12am UTC](https://discourse.mitmproxy.org/t/replay-request-does-not-seem-to-trigger-request-or-response-scripts/32 "2016-11-19T09:12:21Z")

</div>

Hi, I've had a longish script from mitmproxy's 0.8 days that I'm trying to migrate to the current stable 0.17 version. My script had some logic that would do some processing based on a particular request and response, du…

---

## [School project, is this the right program for me?](https://discourse.mitmproxy.org/t/school-project-is-this-the-right-program-for-me/237)

<div class="topic-metadata">

**Author:** [@Voltik](https://discourse.mitmproxy.org/u/Voltik)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 5:21pm UTC](https://discourse.mitmproxy.org/t/school-project-is-this-the-right-program-for-me/237 "2016-11-18T17:21:38Z")

</div>

Hey mitmproxy forums, this is my first post on this site and I'm not going to lie, I know next to nothing about this program, but I think this program would be of use to me. I'm doing a school project about digital se…

---

## [How to install mitmproxy in Kali?](https://discourse.mitmproxy.org/t/how-to-install-mitmproxy-in-kali/231)

<div class="topic-metadata">

**Author:** [@LowTech](https://discourse.mitmproxy.org/u/LowTech)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 10:10am UTC](https://discourse.mitmproxy.org/t/how-to-install-mitmproxy-in-kali/231 "2016-11-16T10:10:20Z")

</div>

I try to install mitmproxy in Kali via command sudo pip install mitmproxy but error happend Command python setup.py egg\_info failed with error code 1 in /tmp/pip-build-bwI1st/brotlipy Anyone can help me? Thanks …

---

## [Can't import filter expression from file?](https://discourse.mitmproxy.org/t/cant-import-filter-expression-from-file/218)

<div class="topic-metadata">

**Author:** [@Ga-ryo](https://discourse.mitmproxy.org/u/Ga-ryo)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 6:14am UTC](https://discourse.mitmproxy.org/t/cant-import-filter-expression-from-file/218 "2016-11-14T06:14:15Z")

</div>

mitmproxy can add filter expression from console. -f FILTER, --filter FILTER Filter view expression. But I want to add filter expression from file like described below. Because I want to switch f…

---

## [Run mitmproxy in the background](https://discourse.mitmproxy.org/t/run-mitmproxy-in-the-background/220)

<div class="topic-metadata">

**Author:** [@nickadam](https://discourse.mitmproxy.org/u/nickadam)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 6:12am UTC](https://discourse.mitmproxy.org/t/run-mitmproxy-in-the-background/220 "2016-11-14T06:12:15Z")

</div>

Is there a good way to run mitmproxy in the background? I'm writing a script to run mitmproxy 24/7 and save flows daily. Simple backgrounding doesn't work. mitmproxy & I think I can get it done with screen. screen…

---

## [OpenSSL mitmproxy HTTP2 support](https://discourse.mitmproxy.org/t/openssl-mitmproxy-http2-support/215)

<div class="topic-metadata">

**Author:** [@ievgenii\_2pv](https://discourse.mitmproxy.org/u/ievgenii_2pv)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 2:27pm UTC](https://discourse.mitmproxy.org/t/openssl-mitmproxy-http2-support/215 "2016-10-23T14:27:08Z")

</div>

Hello, I’d like to use mitmproxy to alter HTTP Referer. The problem is that I constantly receive the following warning: HTTP/2 disabled . OpenSSL 1.0.2+ required Currently I have the following packages installed: …

---

## [Can mitmproxy be used to drop traffic to specific destinations](https://discourse.mitmproxy.org/t/can-mitmproxy-be-used-to-drop-traffic-to-specific-destinations/207)

<div class="topic-metadata">

**Author:** [@garthoid](https://discourse.mitmproxy.org/u/garthoid)\
**Replies:** 2\
**Last updated:** [October 23, 2016, 1:55pm UTC](https://discourse.mitmproxy.org/t/can-mitmproxy-be-used-to-drop-traffic-to-specific-destinations/207 "2016-10-23T13:55:40Z")

</div>

So I am a mitmproxy newb and I have an awkward network situation. I am considering if mitmproxy can help. However a search in docs and forums so far has not been conclusive. My use case is that I wish to drop traffic …

---

## [Not all requests are proxied?](https://discourse.mitmproxy.org/t/not-all-requests-are-proxied/201)

<div class="topic-metadata">

**Author:** [@Stavros](https://discourse.mitmproxy.org/u/Stavros)\
**Replies:** 2\
**Last updated:** [October 23, 2016, 8:40am UTC](https://discourse.mitmproxy.org/t/not-all-requests-are-proxied/201 "2016-10-23T08:40:40Z")

</div>

Hello all! I was sure this question would be answered, but I don't see it, so I'll ask: I'm using mitmproxy, but it doesn't look like all the requests are being proxied. Is there anything I can do? Some traffic flows t…

---

## [Need to get only request 'headers and its body' mitmdump](https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199)

<div class="topic-metadata">

**Author:** [@shiv](https://discourse.mitmproxy.org/u/shiv)\
**Replies:** 1\
**Last updated:** [October 23, 2016, 4:57am UTC](https://discourse.mitmproxy.org/t/need-to-get-only-request-headers-and-its-body-mitmdump/199 "2016-10-23T04:57:02Z")

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

---

## [Numerous errors installing on OS X](https://discourse.mitmproxy.org/t/numerous-errors-installing-on-os-x/211)

<div class="topic-metadata">

**Author:** [@jonathannz](https://discourse.mitmproxy.org/u/jonathannz)\
**Replies:** 1\
**Last updated:** [October 23, 2016, 4:51am UTC](https://discourse.mitmproxy.org/t/numerous-errors-installing-on-os-x/211 "2016-10-23T04:51:58Z")

</div>

Hello, I attempted to install mitmproxy on Mac OS X 10.11.6 using command line: pip install mitmproxy A notice a number of errors were reported, and the final result is that it was not installed. I would appreciate som…

---

## [Best way to parse HTTP messages programatically for automated tests](https://discourse.mitmproxy.org/t/best-way-to-parse-http-messages-programatically-for-automated-tests/191)

<div class="topic-metadata">

**Author:** [@farnett44](https://discourse.mitmproxy.org/u/farnett44)\
**Replies:** 3\
**Last updated:** [October 23, 2016, 4:49am UTC](https://discourse.mitmproxy.org/t/best-way-to-parse-http-messages-programatically-for-automated-tests/191 "2016-10-23T04:49:18Z")

</div>

Hello, I am evaluating software options for my automation tests in order to replace test cases that are normally preformed manually through a similar mitm tool Charles. I was a little surprised to find the interactive …

---

## [Mitmproxy and youtube comments](https://discourse.mitmproxy.org/t/mitmproxy-and-youtube-comments/204)

<div class="topic-metadata">

**Author:** [@Losiara](https://discourse.mitmproxy.org/u/Losiara)\
**Replies:** 1\
**Last updated:** [October 23, 2016, 4:45am UTC](https://discourse.mitmproxy.org/t/mitmproxy-and-youtube-comments/204 "2016-10-23T04:45:23Z")

</div>

Try to load youtube video page through mitmproxy, but comments are not loaded. Without mitmproxy in the middle everything is ok.

---

## [Intercept but don't forward via script?](https://discourse.mitmproxy.org/t/intercept-but-dont-forward-via-script/206)

<div class="topic-metadata">

**Author:** [@lars\_schwarz](https://discourse.mitmproxy.org/u/lars_schwarz)\
**Replies:** 2\
**Last updated:** [October 23, 2016, 4:43am UTC](https://discourse.mitmproxy.org/t/intercept-but-dont-forward-via-script/206 "2016-10-23T04:43:52Z")

</div>

I'm currently intercepting request content via a simple py script, but it would like to drop the forwarding afterwards (or empty the request content before forwarding), so I tried with flow.request.content = null after I…

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

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