http-party / node-http-proxy

A full-featured http proxy for node.js
https://github.com/http-party/node-http-proxy
Other
13.92k stars 1.97k forks source link

how to use http-proxy to forward all requests to a url using Network Proxy #1033

Open ankeshdave opened 8 years ago

ankeshdave commented 8 years ago

Issue origin : ember-cli/ember-cli#6032

I wish to proxy all my request to a cloudApiUrl but we have our dev machine behind a corporate proxy (Ntlm Proxy). I have used Proxy Authentication application (Cntlm) to create a no-auth proxy Url at http://127.0.0.1:3128. I wish at all the outgoing traffic using http-proxy middleware to my cloudApiUrl through http://127.0.0.1:3128 Any pointers on Options to use Configuration to make will be helpful

PS : for reference Link to how ember has used http-proxy

chenzx commented 8 years ago

I have also the needs. To create a second-level proxy, which proxy all requests throw a next hop proxy. Years ago, i use HTTPort, it's written in Windows C++, but i thought node-http-proxy could/should also be able to do this.

chenzx commented 8 years ago

Or if i export HTTP_PROXY env var before start node-http-proxy? could that work?

lawred2 commented 7 years ago

This is something I am also interested in knowing. Created somewhat of a related issue ticket #1160

barroudjo commented 3 years ago

Use http-proxy-agent or https-proxy-agent, see https://github.com/http-party/node-http-proxy/issues/832