HttpGet设置网络代理的实例代码 - 2302
作者:互联网
```Java
final HttpGet get = new HttpGet(mConfigUtil.getConfig("tokenurl"));
get.setHeader("Authorization", getBasicAuth());
get.setHeader("x-csrf-token", "fetch");
HttpHost proxy = new HttpHost("proxy.sha.diablo.corp", 8080, "http");
RequestConfig config = RequestConfig.custom().setProxy(proxy).build();
get.setConfig(config);
```
标签:HttpGet,get,2302,RequestConfig,实例,proxy,new,HttpHost 来源: https://blog.csdn.net/i042416/article/details/90543030