Fiddler is an HTTP Proxy running on port 8888 on your local PC. Can configure any application which accepts a HTTP Proxy to run through Fiddler so you can debug its traffic." (hookup) Try it:
WebClient wc = new WebClient(BrowserVersion.FIREFOX_2, "127.0.0.1", 8888);
OR
Get the correct auto-configuration URL from Fiddler by clicking Tools / Fiddler Options / Connections, and clicking the 'Copy Browser Proxy Configuration URL' link."
wc.getProxyConfig().setProxyAutoConfigUrl(strUrl);
WebClient wc = new WebClient(BrowserVersion.FIREFOX_2, "127.0.0.1", 8888);
OR
Get the correct auto-configuration URL from Fiddler by clicking Tools / Fiddler Options / Connections, and clicking the 'Copy Browser Proxy Configuration URL' link."
wc.getProxyConfig().setProxyAutoConfigUrl(strUrl);
本文介绍如何利用Fiddler作为HTTP代理服务器,在本地PC上监听8888端口,配置应用程序通过Fiddler运行以调试其HTTP流量。提供了使用WebClient类设置Fiddler代理的具体示例代码。
565

被折叠的 条评论
为什么被折叠?



