在代码中调用其它接口, 使用HTTPClient发送请求的时候, fiddler并不能抓取到这个请求.
为了调试方便所以在HTTPClient代码中设置代理, 如下:
HttpHost proxy = new HttpHost("127.0.0.1",8888);
requestConfig = RequestConfig.custom().setProxy(proxy).build(); //timeout之类配置省略
CloseableHttpClient httpClient = HttpClientBuilder.create().setDefaultRequestConfig(requestConfig).build();
==============
提交代码的时候记得把折断删掉-.-