xp-framework / http

HTTP protocol support for the XP Framework
2 stars 2 forks source link

NO_PROXY #15

Closed thekid closed 8 years ago

thekid commented 8 years ago

The NO_PROXY environment variable is not taken into account (while no_proxy is). Some programs expect this to be in all-caps, see https://wiki.archlinux.org/index.php/Proxy_settings.

See also https://www.npmjs.com/package/proxy-from-env and https://www.gnu.org/software/wget/manual/wget.html#Proxies

/cc @kiesel

thekid commented 8 years ago

On Windows/Cygwin, this is not a problem as environment variables are case-preserving, but case-insensitive.

C:\tools\cygwin\home\Timm>set USER=Timm
C:\tools\cygwin\home\Timm>.\bin\xp.exe -w "getenv('USER')"
Timm
C:\tools\cygwin\home\Timm>.\bin\xp.exe -w "getenv('user')"
Timm

Not so on Mac/Unix:

vagrant@vagrant-ubuntu-vivid-64:~$ xp -w 'getenv("USER")'
vagrant
vagrant@vagrant-ubuntu-vivid-64:~$ xp -w 'getenv("user")'
false
thekid commented 8 years ago

:shipit: Released in 7.0.1