browsermob-proxy icon indicating copy to clipboard operation
browsermob-proxy copied to clipboard

browsermobproxy does not capture HAR files entries when using the Proxytype.PAC for Firefox.

Open geowills234 opened this issue 6 years ago • 3 comments

PAC file content used as below

function FindProxyForURL(url, host) { if (url.substring(0, 3) === "ws:" || url.substring(0, 4) === "wss:") { return "DIRECT"; } else { return "Proxy 127.0.0.1:53316"} }

seleniumProxy = new Proxy(); seleniumProxy.setProxyType(Proxy.ProxyType.PAC); seleniumProxy.setProxyAutoconfigUrl(pacLocation);

Using above codes does not capture HAR Entries.

If I use Proxytype.MANUAL , HAR file is captured BY socket.IO calls not working in application. So i tried autoconfigproxyURL with above PAC file.

seleniumProxy.setProxyType(Proxy.ProxyType.MANUAL); seleniumProxy.setHttpProxy("localhost:53316"); seleniumProxy.setSslProxy("localhost:53316");

Please help on this..

geowills234 avatar Apr 18 '18 13:04 geowills234

Any update on this? @geowills234 Were you able to find any workaround?

rchougule avatar May 07 '20 15:05 rchougule

@geowills234 I'm also experiencing this issue and my code looks identical to yours, is there a workaround?

creepcc avatar Mar 19 '23 11:03 creepcc

I didn't spend time in find the solution further as My priority changed as it didn't work.

On Sun, Mar 19, 2023, 4:58 PM creepcc @.***> wrote:

@geowills234 https://github.com/geowills234 I'm also experiencing this issue and my code looks identical to yours, is there a workaround?

— Reply to this email directly, view it on GitHub https://github.com/lightbody/browsermob-proxy/issues/743#issuecomment-1475218211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFXMG7YZKGDTZ3SCNV5MX3W43NVJANCNFSM4E3IOZXA . You are receiving this because you were mentioned.Message ID: @.***>

geowills234 avatar Mar 19 '23 16:03 geowills234