nproxy
nproxy copied to clipboard
Upstream proxy
Hello, I'm trying to use nproxy behind a corporate firewall with a proxy of it own. Does nproxy support upstream proxies? Will it apply env.http_proxy to the request agent like the request module?
hi, Avital, no, nproxy is developed for file replace it does not support upstream proxy
On 2014年12月3日周三 15:58 Avital Ben-Natan [email protected] wrote:
Hello, I'm trying to use nproxy behind a corporate firewall with a proxy of it own. Does nproxy support upstream proxies? Will it apply env.http_proxy to the request agent like the request module?
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41.
I'm behind a corporate proxy. And I would like to proxy only requests to my web app files and map those to a local dir. I would like all other traffic to pass through as normal, is that possible?
On Wed, Dec 3, 2014 at 11:56 AM, Goddy Zhao [email protected] wrote:
hi, Avital, no, nproxy is developed for file replace it does not support upstream proxy
On 2014年12月3日周三 15:58 Avital Ben-Natan [email protected] wrote:
Hello, I'm trying to use nproxy behind a corporate firewall with a proxy of it own. Does nproxy support upstream proxies? Will it apply env.http_proxy to the request agent like the request module?
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65381870.
yes!you can nproxy for such that scenario
On 2014年12月3日周三 18:09 Avital Ben-Natan [email protected] wrote:
I'm behind a corporate proxy. And I would like to proxy only requests to my web app files and map those to a local dir. I would like all other traffic to pass through as normal, is that possible?
On Wed, Dec 3, 2014 at 11:56 AM, Goddy Zhao [email protected] wrote:
hi, Avital, no, nproxy is developed for file replace it does not support upstream proxy
On 2014年12月3日周三 15:58 Avital Ben-Natan [email protected] wrote:
Hello, I'm trying to use nproxy behind a corporate firewall with a proxy of it own. Does nproxy support upstream proxies? Will it apply env.http_proxy to the request agent like the request module?
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65381870.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65383750.
Thank you so much for the prompt replies.
Here is what I tried:
module.exports = [
{
pattern: /.*\/admin.web\/?$/,
responder:
'/dev/repos/sap_projects/connectedcars-cvs_fix/com.sap.connectedcars.admin.web/src/main/webapp/index.html'
},
{
pattern: /.*\/admin.web\/([^?#]*)/,
responder:
'/dev/repos/sap_projects/connectedcars-cvs_fix/com.sap.connectedcars.admin.web/src/main/webapp/$1'
}
];
Loaded the proxy with the above file, and pointed chrome to use
localhost:8989 (Use the same proxy server for all protocols)
After this I got the following error when trying to connect to any URL
uncaughtException: Can't render headers after they are sent to
the client.
Am I missing something?
Thank you,
Avital On Dec 3, 2014 2:43 PM, "Goddy Zhao" [email protected] wrote:
yes!you can nproxy for such that scenario
On 2014年12月3日周三 18:09 Avital Ben-Natan [email protected] wrote:
I'm behind a corporate proxy. And I would like to proxy only requests to my web app files and map those to a local dir. I would like all other traffic to pass through as normal, is that possible?
On Wed, Dec 3, 2014 at 11:56 AM, Goddy Zhao [email protected] wrote:
hi, Avital, no, nproxy is developed for file replace it does not support upstream proxy
On 2014年12月3日周三 15:58 Avital Ben-Natan [email protected] wrote:
Hello, I'm trying to use nproxy behind a corporate firewall with a proxy of it own. Does nproxy support upstream proxies? Will it apply env.http_proxy to the request agent like the request module?
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65381870.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65383750.
— Reply to this email directly or view it on GitHub https://github.com/goddyZhao/nproxy/issues/41#issuecomment-65401418.