Fiddler 抓取eclipse中的请求

Fiddler 抓取eclipse中的请求

代码中添加

System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "8888");

或者eclipse 中设置

Windows > preferences > java > installed jres 

选中installed jres > edit > 设置Default VM arguments:-Dhttp.proxySet="true" -Dhttp.proxyHost="127.0.0.1" -Dhttp.proxyPort="8888"

再设置fiddler 中的代理,就可以抓取eclipse中运行的请求

原文地址:https://www.cnblogs.com/testway/p/5524342.html