I am using the request npm module for making http requests in my program. The default behavior of request seems to be that it will try to use proxy server, when one is defined in environment.
I am testing this in a shared unix server used by multiple developers, who keep changing proxy settings. Further more, I do not need proxy, because I just connect other web services within the lan directly.
So, is there a way to tell the 'request' not to use the proxy option, even though if it is set in environment?
PROXY_VAR='' node script.js
which will apply this env var value to that process. Otherwise, you can try to re define env values within the node process like thisprocess.env['WHATEVER']='';
. To call before loading request module. – Oldlinerequest is also aware of the NO_PROXY/no_proxy environment variables
or you need to avoid using env variables? – CuddyNO_PROXY="*" node script.js
– Cuddy