I'm looking for way to take care on updating http_proxy/https_proxy/no_proxy relevant to the Windows 7 proxy configuration.
Context: My corporate has defined PAC file with rules that switch proxy configuration depends on many factors (VPN, network, localization, etc...). Link to this PAC file is defined at Windows Internet Properties (Connections/LAN settings) so everything works fine if services using Windows System Proxy configuration. But I'm using a lot of command line tools that utilize only {http/https/no}_proxy variables so, each time when I change localization/network I have to update my system variables - this is little confusing for me.
Is it any way to do it automatically?
myIpAddress()
, that might be feasible. Otherwise, you do indeed need a local proxy to take care of things.