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中运行的请求

 

posted @ 2016-05-24 17:57  testway  阅读(5438)  评论(1编辑  收藏  举报