HttpHost proxy = new HttpHost("127.0.0.1", 8888, "http");//127.0.0.1:8888地址为fiddler的抓包代理地址
DefaultProxyRoutePlanner routePlanner = new DefaultProxyRoutePlanner(proxy);
private CloseableHttpClient client = HttpClients.custom().setRoutePlanner(routePlanner).setDefaultCookieStore(cookieStore).build();
Fiddler抓取HttpClient发送的Http请求
最新推荐文章于 2021-11-18 01:47:20 发布