http-party / node-http-proxy

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

How to use behind Corporate Proxy #541

Open wabmca opened 10 years ago

wabmca commented 10 years ago

I am using express behind enterprise corporate proxy/firewall. I am struggling because because I just don't know where to set proxy for node.js

I usually export http_proxy="http://:@myproxy.com:8080 at prompt. This is just sufficient.

But this setting is not working for node.js. Please help. Should I use node-http-proxy if yes then please give a simple code sample for my code request. Else just give a sample node.js to do this.

Thanks in advance.

ultimate-tester commented 7 years ago

No, this is not the right thing for you. What are you trying to do with Node that requires a proxy? What module are you using that is creating those http requests?