nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Adding an API to configure proxy [$85]

Open clowwindy opened this issue 13 years ago • 47 comments

In 0.6.3 an API to get proxy for url has been added. Can we have an API to set proxy?

Chrome has a proxy API, which doesn't affect system settings. I'm wondering if nw could have the same feature.

http://developer.chrome.com/extensions/proxy.html

Did you help close this issue? Go claim the $85 bounty on Bountysource.

clowwindy avatar Jul 24 '13 12:07 clowwindy

Well, I wonder it could develop a method to support PAC file.

wikipedia:http://en.wikipedia.org/wiki/Proxy_auto-config

xdqi avatar Jul 27 '13 07:07 xdqi

like it too......

wwqgtxx avatar Jul 27 '13 10:07 wwqgtxx

Right, can at least nw use the common HTTP_PROXY, http_proxy, HTTPS_PROXY, and https_proxy environment variables when it can't find any system settings?

The PAC and system support in this closed issue is wonderful:

https://github.com/rogerwang/node-webkit/issues/130?source=cc

But I've found some linux variants that don't supply the system proxy settings in a way Chrome or nw can understand. In those cases, either using the environment variables or a command line option to set the proxy would be helpful. Of course, the proxy given should be returned by the new API in the above issue

erikjjohnson avatar Sep 19 '13 22:09 erikjjohnson

Actually, it is quite annoying to work behind proxy using NW-application, because users are asked for the credentials twice - first for NW, second for Node

Pavel-Husakouski avatar Sep 30 '13 15:09 Pavel-Husakouski

I think there should be implemented some common way - i.e. environment variable HTTP_PROXY which is accessible from the NW and Node, or, another option, some API

Pavel-Husakouski avatar Sep 30 '13 15:09 Pavel-Husakouski

Bump?

The project I'm working on at the moment needs me to find a portable web browser of some sort that runs things through a locally hosted proxy.
node-webkit would be perfect for the task if only I could figure out how to make it use said proxy…

liclac avatar Dec 26 '13 15:12 liclac

uppfinnarn: you can't unless the System config is set to your local hosted server. I implemented kind of http client to make nodewebkit working with my own proxy with authentication.

You can use chromium portable if you don't need any node.js modules. It has an extensions that allows you configure the proxy.

Pavel-Husakouski avatar Dec 26 '13 16:12 Pavel-Husakouski

Looking at that now, thanks. Not as elegant as I could make my node-webkit solution (where I could run the proxy within the same process), but it works.

liclac avatar Dec 26 '13 16:12 liclac

Nevermind, Windows only, back to looking for alternatives until (if) this gets addressed...

liclac avatar Dec 26 '13 16:12 liclac

Need it too ...

felicienfrancois avatar Jan 12 '14 21:01 felicienfrancois

+1

mkoryak avatar Jan 23 '14 03:01 mkoryak

+1 as well

toddhay avatar Jan 29 '14 23:01 toddhay

An API method would be cool but supporting the --proxy-server chromium arg is a first step and is probably easy to implement.

felicienfrancois avatar Feb 10 '14 10:02 felicienfrancois

+1

epodolyak avatar May 06 '14 12:05 epodolyak

I support felicienfrancois proposal to support the --proxy-server arg. For users that cannot edit their system proxy configuration (at work for example), this is really necessary.

davidrapin avatar Jun 05 '14 09:06 davidrapin

+1 would be very useful

iampuma avatar Jun 05 '14 09:06 iampuma

+1 like it too......

wells1013 avatar Jun 25 '14 02:06 wells1013

+1

tholder avatar Aug 26 '14 20:08 tholder

++

AlexVBr avatar Aug 28 '14 21:08 AlexVBr

+1

devon avatar Sep 16 '14 01:09 devon