set upstream proxy using rest api

113 views
Skip to first unread message

rajeshnar...@gmail.com

unread,
Jan 9, 2018, 1:15:29 PM1/9/18
to BrowserMob Proxy
Hi,

I have browsermob integrated with selenium, this runs absolutely fine. I was asked to do poc on integrating browsermob with nightwatch.

I have managed to use rest api provided in documentation. I work behind corporate proxy. In java, I did something like this

BrowserMobProxy server = new BrowserMobProxyServer();
server.chainedProxyAuthorization("userid", "password", AuthType.BASIC);
server.setChainedProxy(new InetSocketAddress("upstreamproxy address", upstream port));

In documentation, it is said we can set chain proxy username and password in '/proxy'. My question is how to set upstream proxy address via rest api??

I want to do below using rest api.


server.setChainedProxy(new InetSocketAddress("upstreamproxy address", upstream port));
 

Any help would be appreciated.

Thanks,
Rajesh N

linda xu

unread,
Mar 20, 2021, 5:36:59 AM3/20/21
to BrowserMob Proxy
I  use this api  server.setChainedProxy(new InetSocketAddress("upstreamproxy address", upstream port));   it doesnot work also . 
And error was The proxy server isn’t responding  or the connection was refused. 
Could u please tell where is wrong ? Thanks in advance!

Thanks
Linda

Reply all
Reply to author
Forward
0 new messages