1.下载Fiddler安装 Fiddler4.6
2.在Java程序中,http请求前,加入以下代码
System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("https.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "8888");
System.setProperty("https.proxyPort", "8888");
3.执行请求后即可在Fiddler中看到请求信息