美文网首页
配置 Apache Httpclient 请求走代理,使 Cha

配置 Apache Httpclient 请求走代理,使 Cha

作者: QingMings | 来源:发表于2019-08-19 16:54 被阅读0次

原文地址:Apache HttpClient and Charles Web Debugging Proxy

DefaultHttpClient client = new DefaultHttpClient();
// you can set various parameters for your client here.
// set up the proxy.
HttpHost proxy = new HttpHost("localhost", 8888);
client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

相关文章

网友评论

      本文标题:配置 Apache Httpclient 请求走代理,使 Cha

      本文链接:https://www.haomeiwen.com/subject/qeresctx.html