I’m in China, we have this so-called great firewall blocking access to some sites.
So we employ some proxies to bypass it, like running
export http_proxy=ip:port;export https_proxy=ip:port
command under my terminal.
After doing that, I would expect HTTPoison to use the proxy ip:port, but obviously it’s not in my test, so I have to pass the proxy option myself:
HTTPoison.get! "https://sites-get-blocked.org", [], [{:proxy, "http://127.0.0.1:8888"}]
My question is, does it respect the system proxy setting? Anyone has a better way to handle a problem like this?


















