-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
respect http_proxy and no_proxy for corporate firewall env #286
base: master
Are you sure you want to change the base?
respect http_proxy and no_proxy for corporate firewall env #286
Conversation
@btmurrell Hello, sorry for the long delay in responding. I think you are wanting the library to automatically use https for secure request, and allow you to list urls which will ignore the proxy instructions. I'm reluctant to add an additional way to configure the proxy url, and the library already switches to https when given a signal; is there additional value to adding http-proxy-agent besides reading http_proxy off the env? This is the reason the docs were dropped, btw. In a pre-1.0 version, the lib did not effectively support https, and so the additional agent configuration was required. Incremental upgrades have obviated the cases I'm aware of for using http-proxy-agent, but I'm happy to be corrected if I've got this wrong. |
thanks @monkpow . That's not exactly the behavior i am requesting. it's not about switching between http or https. it's about tunneling thru a proxy server if needed. You understand what a corporate firewall is right? It routes all network traffic through a proxy server to prevent direct access between machines on our internal network and the outside internet. For browsers, this is easily configured through a conventional If i write a node app and make requests using the npm i am sure there is a reason why you are not using the and, hope this helps explain my request. |
@monkpow bump. this PR is no longer waiting for feedback. i answered your inquiry more than a month ago. thanks! |
What exactly was the conclusion on this? I have a similar situation with needing to send my requests through an HTTP proxy server. @btmurrell @monkpow thanks. |
The lack of this feature is making it impossible to carry out development behind a corporate proxy. Prior to version 1.0.0, the solution to this problem was assigning the This is not allowed in 1.0.0. This line seems to provision a custom module, but there's no way I can configure that option. |
Looks like you could always pass an |
in your pre-1.x README, you had user instructions to set req agent to a configured
http-proxy-agent
. This PR makes that configuration automatic if the environment hasHTTP_PROXY
orhttp_proxy
defined and ignores hosts listed inno_proxy
.