# Change upstream proxy for https flow

**URL:** <https://discourse.mitmproxy.org/t/change-upstream-proxy-for-https-flow/347>\
**Category:** help\
**Created:** [February 8, 2017, 8:05am UTC](https://discourse.mitmproxy.org/t/change-upstream-proxy-for-https-flow/347 "2017-02-08T08:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 21, 2017, 2:27am UTC](https://discourse.mitmproxy.org/t/change-upstream-proxy-for-https-flow/347/5 "2017-04-21T02:27:28Z")

</div>

@wmrowan You got this working? I am using the latest version but it seems HTTPS still uses the default proxy. As described here:

> [@Upstream Proxy HTTPS](https://discourse.mitmproxy.org/t/upstream-proxy-https/452):
>
> I have my script changing the upstream proxy for HTTP connections, but it seems to fail for HTTPS connections. Here’s a basic stripped down example. The script works fine for [http://api.ipify.org/](http://api.ipify.org/), but fails for [https://api.ipify.org/](https://api.ipify.org/). With HTTPS I see the following, which shows the upstream proxy wasn’t changed. Server connection to default\_proxy:8888 failed: Error connecting to "default\_proxy": [Errno 8] nodename nor servname provided, or not known Running Command: mitmdump -s utilities/…

Got any insight?

---

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