# Upstream Proxy HTTPS

**URL:** <https://discourse.mitmproxy.org/t/upstream-proxy-https/452>\
**Category:** help\
**Created:** [April 20, 2017, 6:38am UTC](https://discourse.mitmproxy.org/t/upstream-proxy-https/452 "2017-04-20T06:38:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jake232](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/jake232/32/152_2.png) [@Jake232](https://discourse.mitmproxy.org/u/Jake232)\
**Post date:** [April 20, 2017, 6:42am UTC](https://discourse.mitmproxy.org/t/upstream-proxy-https/452/3 "2017-04-20T06:42:30Z")

</div>

It looks like somebody maybe had a similar error here, and upgrading fixed it. But I’m already on 2.x.

> [@Change upstream proxy for https flow](https://discourse.mitmproxy.org/t/change-upstream-proxy-for-https-flow/347):
>
> My eventual goal is to dynamically change the upstream proxy of my https flow based on the domain of the destination server or the value of a header. For now, I’m just trying to get a minimal example working following the example of [https://github.com/mitmproxy/mitmproxy/blob/master/examples/complex/change\_upstream\_proxy.py](https://github.com/mitmproxy/mitmproxy/blob/master/examples/complex/change_upstream_proxy.py) but I’m not getting the expected results. I run mitmdump in upstream mode like so: mitmdump -U https://default-proxy:port -s change-upstream.py With this script def requ…

---

_[View the full topic](https://discourse.mitmproxy.org/t/upstream-proxy-https/452)._
