browsermob-proxy
browsermob-proxy copied to clipboard
A free utility to help web developers watch and manipulate network traffic from their AJAX applications.
My setup: ``` proxy = new BrowserMobProxyServer(); proxy.setTrustAllServers(true); HashSet enable = new HashSet(); enable.add(CaptureType.REQUEST_HEADERS); enable.add(CaptureType.REQUEST_CONTENT); enable.add(CaptureType.REQUEST_BINARY_CONTENT); enable.add(CaptureType.RESPONSE_HEADERS); proxy.enableHarCaptureTypes(enable); proxy.start(); // can specify a port here if you like System.setProperty("webdriver.chrome.driver", "src/test/resources/webdriver/mac/chromedriver");...
I have a setup with webdriver and BrowserMob Proxy to run some selenium tests and get the har file while doing it. I have a CustomDriver class, where I put...
19:03:19.127 [LittleProxy-0-ProxyToServerWorker-4] ERROR io.netty.util.ResourceLeakDetector - LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information. Recent access records: Created at: io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:334) io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187) io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:178) io.netty.buffer.CompositeByteBuf.allocBuffer(CompositeByteBuf.java:1751) io.netty.buffer.CompositeByteBuf.copy(CompositeByteBuf.java:1406) io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1187) io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest.copy(HttpObjectAggregator.java:412)...
18:44:29.215 [LittleProxy-0-ProxyToServerWorker-5] ERROR org.littleshoot.proxy.impl.ProxyToServerConnection - (AWAITING_INITIAL) [id: 0x4d99d4cf, L:0.0.0.0/0.0.0.0:63482 ! R:r14---sn-2x3eln76.gvt1.com/203.208.39.96:80]: Caught an exception on ProxyToServerConnection io.netty.handler.codec.TooLongFrameException: Response entity too large: DefaultHttpResponse(decodeResult: success, version: HTTP/1.1) HTTP/1.1 200 OK Accept-Ranges: bytes...
in my back-end app, i need to change the upstream proxy dynamically due to different chrome driver request task. but when i set new upstream proxy, new request still use...
I know we can use browsermob-proxy with firefox driver. Can we use it with chromedriver as well?
java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
This is a problem because these sorts of pathological situations are exactly why I started using browsermob-proxy. Workaround is to use `AdvancedHostResolver#remapHost` instead, but this is unsightly and might fail...
I start my BMP with options like this: 'httpProxy' => 'proxy.com', 'proxyUsername' => 'user', 'proxyPassword' => 'password', 'trustAllServers' => true, and this works fine. After that I recieve proxy port...
I needed Brotli compression recognition because I wanted to get some data from Facebook which use this algorithm.