Why don't proxyHost/proxyPort work when running my Java application?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a java app that talks to some REST services, and I want to look at the HTTP traffic using Fiddler. Fiddler acts as a proxy on localhost:8888, so the following Java VM options are supposed to configure java to use this proxy: -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 However, if I pass these parameters when running the java app that I want to debug, I see no traffic in Fiddler. I wrote a test Java app that simply performs an HTTP GET using HttpURLConnection. I can view the HTTP traffic from this app in fiddler, if I specify the