- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
I don't think simply removing the proxy option is a good idea.
The reason we introduced this is explained in #3383, but let me summarize: often the http_proxy environment variable is defined on servers, to enable tools to "get out" on the internet (for example to hit package repositories, download software, etc...).
However, these proxies are usually only configured to route HTTP traffic outside of the corporate network. But Rudder's HTTP requests almost always target a HTTP server inside the network, possibly in some sort of network-control-area, that is unknown (or deliberately forbidden) by the proxy server. This is why we currently force curl to use no proxy.
I understand that this Pull Request is based on the fact that the "--proxy" option doesn't exist on the version of curl for Windows you're using, but I'd like to be sure this is the best approach to fixing this. What are our other options?
For example, some ideas:
- Are we just using a really old version of curl, and therefore upgrading would be enough?
- How does curl use/not use a proxy if the --proxy option is not available? It must be able to, this is basic HTTP-fu.
- Is there an equivalent mechanism in Windows to the http_proxy environment variable in UNIX that we could/should use?