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
Option http.nonProxyHosts is not taken into consideration #390
Comments
I'm trying to workaround this for myself but it's been a struggle. I tried to create a BrowserMobProxyServer and set a ChainedProxyManager, but it's not working either. Here's the code I'm using for the ChainedProxyManager: `public class DefaultChainedProxyManager implements ChainedProxyManager {
}`
I run the server like this:
And whenever the the outgoing proxy is chosen I get this exception: ` |
I'm not sure where the |
@cjmachado hi mate, sorry for leave a message after 2 years time. I am facing the same issue, do you any workaround or substitute tool suggestion? Thanks |
Hi,
Our company runs tests for in-house applications located both in our intranet and internet. We have a proxy to access the internet, so the big picture is:
BMP
|----- Intranet App? -----> App Server (direct connection)
|----- Internet App? -----> Corporate Proxy ------> App Server
So, I must be able to specify that all intranet app servers should bypass our corporate proxy (in this example, it's on 192.168.0.0 network). I'm launching browsermob-proxy in the command line using the provided script with the following options (consider that our corporate proxy has IP 192.168.1.1 and it's listening on port 80):
JAVA_OPTS="-Dhttp.proxyHost=192.168.1.1 -Dhttps.proxyHost=192.168.1.1 -Dhttp.nonProxyHosts="localhost|127.0.0.|192.168.0." ./browsermob-proxy -proxyPortRange '8081-8085'
If I point the browser to a port between 8081 and 8085, it's possible to reach the Internet Apps, but not the Intranet Apps. It seems that the proxyHost options are taken into consideration, but the nonProxyHosts is not.
I tried specifying -Djava.net.useSystemProxies=true but it also didn't work (we use RedHat 6.7).
Actually, we are trying to run browsermob as a service, so I'm sharing the init.d script that we use.
browsermob-proxy.txt
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: