Skip to content Skip to sidebar Skip to footer

How To Debug Htmlunit Traffic With Fiddler Using Pac (proxy Auto-config)

I have an application using Htmlunit and need put Fiddler to intercept traffic, i read something about configure it via PAC (proxy auto-config) javascript file that comes with but

Solution 1:

"Fiddler is an HTTP Proxy running on port 8888 on your local PC. You can configure any application which accepts a HTTP Proxy to run through Fiddler so you can debug its traffic." (hookup) Try it:

WebClientwc=newWebClient(BrowserVersion.FIREFOX_2, "127.0.0.1", 8888);

OR

"You can get the correct auto-configuration URL from Fiddler by clicking Tools / Fiddler Options / Connections, and clicking the 'Copy Browser Proxy Configuration URL' link." (hookup) Try it:

 wc.getProxyConfig().setProxyAutoConfigUrl(strUrl);

Post a Comment for "How To Debug Htmlunit Traffic With Fiddler Using Pac (proxy Auto-config)"