Closed zbindenren closed 9 years ago
yea, it's already in httplib, but I should add more flag. it will be next feature
It should probably not be a flag, but read env vars.
no, I don't think we should read the env vars. because I should support all system, env vars is not a good solution for this.
I want to do like this:
-proxy=PROTOCOL:PROXY_URL
PROTOCOL: http or https
But it looks I can support flag and env vars. first read from flag, if it's nil, then read from env vars. but that will always use the proxy if set the env vars.
As far as I know, windows also supports env variables. But if you support both, it is ok.
@zbindenren it's support both now. you can try it now.
Http Proxy support would be great.
/tmp ❯❯❯ echo $http_proxy http://localhost:9999 /tmp ❯❯❯ echo $https_proxy http://localhost:9999 /tmp ❯❯❯ bat beego.me 2015/04/10 13:20:51 can't get the url Get http://beego.me: dial tcp 106.187.97.110:80: connection refused