Skip to content
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

Setting proxy for network traffic #183

Closed
btoews opened this issue Feb 27, 2014 · 5 comments
Closed

Setting proxy for network traffic #183

btoews opened this issue Feb 27, 2014 · 5 comments

Comments

@btoews
Copy link

btoews commented Feb 27, 2014

I'm trying to proxy the traffic from atom and it doesn't seem to respect the system proxy or the HTTP_PROXY environment variable. Anyone know how I can set this?

@zcbenz
Copy link
Member

zcbenz commented Mar 11, 2014

Did you use node's net/http module to access network, or browser things like $.ajax? If it was the former then you need to manually set the proxy via modules like request, node's modules use a completely different network stack with Chromium, and it doesn't respect system proxy.

@btoews
Copy link
Author

btoews commented Mar 11, 2014

I kind of got this working by setting the http_proxy environment variable (lower case), but then I got a bunch of node exceptions coming out of the request library. I worked around these by modifying some of the source for that library. Regardless, I think I've figured out a reliable way to proxy stuff, so I'll close this.

@alvinteh
Copy link

@mastahyeti Do you mind sharing how you figured to proxy requests - both those initiated from the Chromium stack and those from the node stack? I've tried setting the http_proxy environment variable and proxy_server Chromium switch to no avail.

@btoews
Copy link
Author

btoews commented Dec 16, 2014

I haven't tried this in a while, but the http_proxy variable doesn't seem to work anymore.

@alvinteh
Copy link

@mastahyeti How about the proxy_server Chromium switch or the modifications you made?

Basically, I'm exploring migrating some of my company's desktop apps from .NET to node, and the main stumbling block is proxies. I can get around that for node modules by prompting users for the proxy details and using them in the request module, but that leaves the Chromium side of things unresolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants