# help

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

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

**Page:** 4

---

## [Addon intercepting request and responding to it](https://discourse.mitmproxy.org/t/addon-intercepting-request-and-responding-to-it/1422)

<div class="topic-metadata">

**Author:** [@WanderingBrooks](https://discourse.mitmproxy.org/u/WanderingBrooks)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 4:40am UTC](https://discourse.mitmproxy.org/t/addon-intercepting-request-and-responding-to-it/1422 "2019-02-18T04:40:59Z")

</div>

Hi, I’m trying to write an addon and want to reply to a request in the request function here. How do I intercept this request and respond to it as if I am the server my device wants to connect too. The functionality I’m…

---

## [Mitweb transparent mode on a Hyper-v VM with Windows 10?](https://discourse.mitmproxy.org/t/mitweb-transparent-mode-on-a-hyper-v-vm-with-windows-10/1409)

<div class="topic-metadata">

**Author:** [@baretomas](https://discourse.mitmproxy.org/u/baretomas)\
**Replies:** 1\
**Last updated:** [January 31, 2019, 5:43pm UTC](https://discourse.mitmproxy.org/t/mitweb-transparent-mode-on-a-hyper-v-vm-with-windows-10/1409 "2019-01-31T17:43:12Z")

</div>

Steps to reproduce the problem: Install Mitmproxy Install certificate through web page and put certificate into trusted root certificate authorities Run: mitmweb --mode transparent --listen-port 1081 --web-port 8081 --s…

---

## [Read from SAZ file?](https://discourse.mitmproxy.org/t/read-from-saz-file/1406)

<div class="topic-metadata">

**Author:** [@nssben](https://discourse.mitmproxy.org/u/nssben)\
**Replies:** 0\
**Last updated:** [January 27, 2019, 1:03am UTC](https://discourse.mitmproxy.org/t/read-from-saz-file/1406 "2019-01-27T01:03:42Z")

</div>

I have a bunch of existing SAZ files that I would like to either be able to read with mitmdump in server replay mode or find a document on the format of the dump files so I could write a conversion from SAZ-\>mitm dump fi…

---

## [Decrypting SSL traffic](https://discourse.mitmproxy.org/t/decrypting-ssl-traffic/1403)

<div class="topic-metadata">

**Author:** [@Smilie](https://discourse.mitmproxy.org/u/Smilie)\
**Replies:** 0\
**Last updated:** [January 25, 2019, 7:09pm UTC](https://discourse.mitmproxy.org/t/decrypting-ssl-traffic/1403 "2019-01-25T19:09:18Z")

</div>

Hi guys, I’m trying to inspect the web traffic sent by an application. I use proxifier to run the traffic through mitmproxy, and mitmproxy does a formidable job passing it on, to where it’s supposed to go. The only pr…

---

## [How to force subject (alternative) name](https://discourse.mitmproxy.org/t/how-to-force-subject-alternative-name/1400)

<div class="topic-metadata">

**Author:** [@kirikaza](https://discourse.mitmproxy.org/u/kirikaza)\
**Replies:** 0\
**Last updated:** [January 23, 2019, 1:45pm UTC](https://discourse.mitmproxy.org/t/how-to-force-subject-alternative-name/1400 "2019-01-23T13:45:12Z")

</div>

When I run mitmproxy in reverse mode I configure clients to connect to “https://localhost:12345/” instead of real server. It works well for SNI-speaking clients but doesn’t for clients which doesn’t support SNI. How can …

---

## [Cannot load certificates via 'magic' url on Ubuntu 16.04.5 LTS](https://discourse.mitmproxy.org/t/cannot-load-certificates-via-magic-url-on-ubuntu-16-04-5-lts/1392)

<div class="topic-metadata">

**Author:** [@hmackiernan](https://discourse.mitmproxy.org/u/hmackiernan)\
**Replies:** 0\
**Last updated:** [January 21, 2019, 12:04pm UTC](https://discourse.mitmproxy.org/t/cannot-load-certificates-via-magic-url-on-ubuntu-16-04-5-lts/1392 "2019-01-21T12:04:02Z")

</div>

Cannot load certificates via ‘magic’ url on Ubuntu 16.04.5 LTS Install mitmproxy via tarball from https://snapshots.mitmproxy.org/4.0.4/mitmproxy-4.0.4-linux.tar.gz (download, untar into ‘/opt/mitmproxy’ Launch mitmpro…

---

## [Websocket capture](https://discourse.mitmproxy.org/t/websocket-capture/1374)

<div class="topic-metadata">

**Author:** [@gonedjur](https://discourse.mitmproxy.org/u/gonedjur)\
**Replies:** 1\
**Last updated:** [January 10, 2019, 11:59am UTC](https://discourse.mitmproxy.org/t/websocket-capture/1374 "2019-01-10T11:59:53Z")

</div>

Hello I’m a little confused on how to actually start capturing websocket traffic? All I see are the connection events. I read I can’t see it in the webui but how do I see it anywhere? Regards Erik

---

## [Invalid HTTP request form (expected: authority or absolute, got: relative)](https://discourse.mitmproxy.org/t/invalid-http-request-form-expected-authority-or-absolute-got-relative/1380)

<div class="topic-metadata">

**Author:** [@chrisboyke](https://discourse.mitmproxy.org/u/chrisboyke)\
**Replies:** 1\
**Last updated:** [January 10, 2019, 11:57am UTC](https://discourse.mitmproxy.org/t/invalid-http-request-form-expected-authority-or-absolute-got-relative/1380 "2019-01-10T11:57:53Z")

</div>

Hello - I’m trying to set up mitmdump as a reverse proxy, proxying into a set of servers via their private IP addresses (in an AWS VPC). I think my problem is in the startup params, as no matter what I try, I’m gettin…

---

## [Forward HTTPS to HTTP in Parallels VM](https://discourse.mitmproxy.org/t/forward-https-to-http-in-parallels-vm/1372)

<div class="topic-metadata">

**Author:** [@GoddardSpace](https://discourse.mitmproxy.org/u/GoddardSpace)\
**Replies:** 0\
**Last updated:** [January 7, 2019, 2:21am UTC](https://discourse.mitmproxy.org/t/forward-https-to-http-in-parallels-vm/1372 "2019-01-07T02:21:30Z")

</div>

Hello, I’ve setup mitmproxy on my Mac with the proxy configured on the network interface as well as an iOS device with the certs trusted on both. I am trying to test the app locally and make calls to the API (iOS device…

---

## [Handling CONNECT requests that are blocked (because of pinning?)](https://discourse.mitmproxy.org/t/handling-connect-requests-that-are-blocked-because-of-pinning/1188)

<div class="topic-metadata">

**Author:** [@SteinLabs](https://discourse.mitmproxy.org/u/SteinLabs)\
**Replies:** 2\
**Last updated:** [January 6, 2019, 1:26pm UTC](https://discourse.mitmproxy.org/t/handling-connect-requests-that-are-blocked-because-of-pinning/1188 "2019-01-06T13:26:29Z")

</div>

Mitmproxy: 4.0.4 Python: 3.6.1 OpenSSL: OpenSSL 1.1.0i 14 Aug 2018 Platform: Linux-2.6.32-754.3.5.el6.x86\_64-x86\_64-with-centos-6.10-Final Running in normal mode. mitmdump -s script.py --listen-port 10080 --c…

---

## [Setting up invisible proxy](https://discourse.mitmproxy.org/t/setting-up-invisible-proxy/1367)

<div class="topic-metadata">

**Author:** [@tampe125](https://discourse.mitmproxy.org/u/tampe125)\
**Replies:** 1\
**Last updated:** [January 6, 2019, 1:24pm UTC](https://discourse.mitmproxy.org/t/setting-up-invisible-proxy/1367 "2019-01-06T13:24:56Z")

</div>

Hello everyone, I’m trying to debug, inspect and modify a WebSocket connection that a Windows application is performing. I already tried to redirect all traffic to my Linux box, but it seems that the system-wide proxy …

---

## [Console logs- "mitmdump" ISSUE](https://discourse.mitmproxy.org/t/console-logs-mitmdump-issue/1362)

<div class="topic-metadata">

**Author:** [@chandan](https://discourse.mitmproxy.org/u/chandan)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 9:10am UTC](https://discourse.mitmproxy.org/t/console-logs-mitmdump-issue/1362 "2018-12-25T09:10:24Z")

</div>

Hello Team, I am using mitmdump command to save logs.Command looks like -"/usr/bin/mitmdump -s t.py -T &" where “t.py” is a python script to get human readable logs and log is saving to local drive. Issue :- The co…

---

## [CURL and Requests copy addons](https://discourse.mitmproxy.org/t/curl-and-requests-copy-addons/1360)

<div class="topic-metadata">

**Author:** [@deti1](https://discourse.mitmproxy.org/u/deti1)\
**Replies:** 0\
**Last updated:** [December 24, 2018, 9:01pm UTC](https://discourse.mitmproxy.org/t/curl-and-requests-copy-addons/1360 "2018-12-24T21:01:03Z")

</div>

Hi There, I’ve been using mitmporxyV2 for years. However, recently I stupidly updated to the latest version. Could you kindly advise me where to find addons for Copying and Exporting flows as cURL commands and Python R…

---

## [Transparent mode, unable to prevent mitmproxy from contacting upstream server](https://discourse.mitmproxy.org/t/transparent-mode-unable-to-prevent-mitmproxy-from-contacting-upstream-server/1358)

<div class="topic-metadata">

**Author:** [@wsgcsysadmin](https://discourse.mitmproxy.org/u/wsgcsysadmin)\
**Replies:** 0\
**Last updated:** [December 21, 2018, 4:46pm UTC](https://discourse.mitmproxy.org/t/transparent-mode-unable-to-prevent-mitmproxy-from-contacting-upstream-server/1358 "2018-12-21T16:46:04Z")

</div>

Similar to: https://discourse.mitmproxy.org/t/return-response-directly-no-request-to-target-domain-or-server Mitmproxy v4.0.3 I want to intercept the request from the client and send back a response without the upstre…

---

## [How to replace flow.resposne.content to utf-8 in add-on script?](https://discourse.mitmproxy.org/t/how-to-replace-flow-resposne-content-to-utf-8-in-add-on-script/1340)

<div class="topic-metadata">

**Author:** [@luoshangyu](https://discourse.mitmproxy.org/u/luoshangyu)\
**Replies:** 1\
**Last updated:** [December 20, 2018, 10:35am UTC](https://discourse.mitmproxy.org/t/how-to-replace-flow-resposne-content-to-utf-8-in-add-on-script/1340 "2018-12-20T10:35:48Z")

</div>

Steps to reproduce the problem: Hi experts, i’m trying to use the mitmweb to work as the front view to watch the network traffic. but when i was trying to replace the response.content, it said message content must be b…

---

## [OpenVPN with mitproxy](https://discourse.mitmproxy.org/t/openvpn-with-mitproxy/1355)

<div class="topic-metadata">

**Author:** [@chandan](https://discourse.mitmproxy.org/u/chandan)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 8:47am UTC](https://discourse.mitmproxy.org/t/openvpn-with-mitproxy/1355 "2018-12-20T08:47:07Z")

</div>

Hello Guys, I have mitmproxy running on a ubuntu machine and on same machine OpenVPN is running. I am able to see the logs for all http and https request on terminal. The Iptable rule implemented is like . iptables -t…

---

## [Configuration for OpenVPN](https://discourse.mitmproxy.org/t/configuration-for-openvpn/1354)

<div class="topic-metadata">

**Author:** [@chandan](https://discourse.mitmproxy.org/u/chandan)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 11:56am UTC](https://discourse.mitmproxy.org/t/configuration-for-openvpn/1354 "2018-12-19T11:56:11Z")

</div>

Hello Team, We have OpenVPN Server installed on linux ec2 instance and on same instance mitmproxy is running. As per our requirement, I want to use mitmproxy to log all the access logs which was browse by making connec…

---

## [How to implement request whitelisting?](https://discourse.mitmproxy.org/t/how-to-implement-request-whitelisting/1334)

<div class="topic-metadata">

**Author:** [@billybob](https://discourse.mitmproxy.org/u/billybob)\
**Replies:** 0\
**Last updated:** [November 19, 2018, 8:27pm UTC](https://discourse.mitmproxy.org/t/how-to-implement-request-whitelisting/1334 "2018-11-19T20:27:13Z")

</div>

I would like to analyze the network traffic from a device and allow only some requests selectively. More specifically, I’d like to initially block all requests from ever getting out and instead just watch in mitmproxy a…

---

## [Replace Location Header in 302 Response](https://discourse.mitmproxy.org/t/replace-location-header-in-302-response/1328)

<div class="topic-metadata">

**Author:** [@idioms](https://discourse.mitmproxy.org/u/idioms)\
**Replies:** 1\
**Last updated:** [November 13, 2018, 10:31am UTC](https://discourse.mitmproxy.org/t/replace-location-header-in-302-response/1328 "2018-11-13T10:31:07Z")

</div>

Hi all, I have mitmproxy running in reverse proxy mode and would like to replace the Location: value in a specific 302 response. Im not sure if i have to delve into scripting or whether there is a simpler way to achiev…

---

## [How to differentiate between connected devices?](https://discourse.mitmproxy.org/t/how-to-differentiate-between-connected-devices/1280)

<div class="topic-metadata">

**Author:** [@draxler](https://discourse.mitmproxy.org/u/draxler)\
**Replies:** 3\
**Last updated:** [November 8, 2018, 3:54pm UTC](https://discourse.mitmproxy.org/t/how-to-differentiate-between-connected-devices/1280 "2018-11-08T15:54:58Z")

</div>

I have created a plugin, in it I process the def response(self, flow: mitmproxy.http.HTTPFlow): callback. Everything works very well except I have no way of differentiating between connected devices. Let’s say all I d…

---

## [Throttling feature](https://discourse.mitmproxy.org/t/throttling-feature/453)

<div class="topic-metadata">

**Author:** [@internety](https://discourse.mitmproxy.org/u/internety)\
**Replies:** 2\
**Last updated:** [November 7, 2018, 6:12am UTC](https://discourse.mitmproxy.org/t/throttling-feature/453 "2018-11-07T06:12:13Z")

</div>

I would appreciate any hints on how to implement connection throttling. I have to cap speed available to some particular connections. There is no need to cap any other connections within same cli-srv session, so it would…

---

## [Log with timestamp](https://discourse.mitmproxy.org/t/log-with-timestamp/767)

<div class="topic-metadata">

**Author:** [@Gigiarum](https://discourse.mitmproxy.org/u/Gigiarum)\
**Replies:** 6\
**Last updated:** [November 4, 2018, 9:34pm UTC](https://discourse.mitmproxy.org/t/log-with-timestamp/767 "2018-11-04T21:34:41Z")

</div>

Hello, I want to write all log to standard error and standard output with a timestamp prefix: where I have to modify? Thanks in advance.

---

## [Process response in real time](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308)

<div class="topic-metadata">

**Author:** [@teddy8478](https://discourse.mitmproxy.org/u/teddy8478)\
**Replies:** 2\
**Last updated:** [November 2, 2018, 4:28pm UTC](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308 "2018-11-02T16:28:51Z")

</div>

Hello, I want to send requests that some fields depend on the previous response. Is it possible get the response and put some value in following request in real time? Thanks

---

## [Help on dumping har file with filtering content-type](https://discourse.mitmproxy.org/t/help-on-dumping-har-file-with-filtering-content-type/1312)

<div class="topic-metadata">

**Author:** [@EzimetYusup](https://discourse.mitmproxy.org/u/EzimetYusup)\
**Replies:** 0\
**Last updated:** [October 30, 2018, 9:08pm UTC](https://discourse.mitmproxy.org/t/help-on-dumping-har-file-with-filtering-content-type/1312 "2018-10-30T21:08:15Z")

</div>

Hey everyone! I want to export har file with these filters just ignore the all the images, videos, streams so currently I am running the mitmdump like this: mitmdump -p 8080 -w ./dump.har -s ./charles\_har\_dump.py --s…

---

## [Can't log request and response from mitmweb](https://discourse.mitmproxy.org/t/cant-log-request-and-response-from-mitmweb/1306)

<div class="topic-metadata">

**Author:** [@kapz](https://discourse.mitmproxy.org/u/kapz)\
**Replies:** 0\
**Last updated:** [October 27, 2018, 6:33pm UTC](https://discourse.mitmproxy.org/t/cant-log-request-and-response-from-mitmweb/1306 "2018-10-27T18:33:44Z")

</div>

Hi, My machine is Windows 8.1 64bit, only mitmweb and mitmdump is active on my machine, the respective request and response are getting display in mitmweb portal but when i tried to generate logs of the same request and…

---

## [Replay and change upstream proxy server](https://discourse.mitmproxy.org/t/replay-and-change-upstream-proxy-server/1300)

<div class="topic-metadata">

**Author:** [@Seb](https://discourse.mitmproxy.org/u/Seb)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 1:26pm UTC](https://discourse.mitmproxy.org/t/replay-and-change-upstream-proxy-server/1300 "2018-10-26T13:26:51Z")

</div>

Hello, I’m using python addons and I’m trying to change the upstream proxy server if a time out or a specific error occur in the response. I’ve seen both work independently but when my flow is duplicated and sent throu…

---

## [python3 AttributeError: No such option: body\_size\_limit](https://discourse.mitmproxy.org/t/python3-attributeerror-no-such-option-body-size-limit/1219)

<div class="topic-metadata">

**Author:** [@foobar](https://discourse.mitmproxy.org/u/foobar)\
**Replies:** 1\
**Last updated:** [October 25, 2018, 10:55am UTC](https://discourse.mitmproxy.org/t/python3-attributeerror-no-such-option-body-size-limit/1219 "2018-10-25T10:55:49Z")

</div>

Using the following code: from mitmproxy import proxy, options from mitmproxy.tools.dump import DumpMaster from mitmproxy.addons import core opts = options.Options(listen\_host='127.0.0.1', listen\_port=8081) pconf = …

---

## [Mitmproxy dump wrap and signals](https://discourse.mitmproxy.org/t/mitmproxy-dump-wrap-and-signals/1288)

<div class="topic-metadata">

**Author:** [@YafimK](https://discourse.mitmproxy.org/u/YafimK)\
**Replies:** 0\
**Last updated:** [October 21, 2018, 2:42pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-dump-wrap-and-signals/1288 "2018-10-21T14:42:44Z")

</div>

hi, I’ve wrapped mitmproxy and launched it with subprocess but i’d like to close and stop it’s recording with “Enter” press instead of “Ctrl+c” (since pressing “enter” is much more intuitive for users"). But I’m gettin…

---

## [Is there a scripting api for mitmproxy web?](https://discourse.mitmproxy.org/t/is-there-a-scripting-api-for-mitmproxy-web/1287)

<div class="topic-metadata">

**Author:** [@YafimK](https://discourse.mitmproxy.org/u/YafimK)\
**Replies:** 0\
**Last updated:** [October 21, 2018, 2:38pm UTC](https://discourse.mitmproxy.org/t/is-there-a-scripting-api-for-mitmproxy-web/1287 "2018-10-21T14:38:32Z")

</div>

I’d like to add two functionalities to mitmproxy web: stop recording / pause recording. which will be helpful for the second functionality - export all flows as har (using the har extension). Moreover, any contributio…

---

## [Create different multiple Har file according to the client](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278)

<div class="topic-metadata">

**Author:** [@EzimetYusup](https://discourse.mitmproxy.org/u/EzimetYusup)\
**Replies:** 3\
**Last updated:** [October 19, 2018, 3:07pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278 "2018-10-19T15:07:05Z")

</div>

Hi Guys! I was working on a project, one of the problem I have is I need to create the different HAR file according to different client, let’s say I have two iPhone using mitmproxy, and i need to create two different H…

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

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