// 设置请求超时时间
HttpGet httpGet = new HttpGet(url);
RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(500000).setConnectionRequestTimeout(100000).setSocketTimeout(500000).build();
httpGet.setConfig(requestConfig);
// 接收请求返回数据
response = httpClient.execute(httpGet);
HttpEntity entity = response.getEntity();
log.info("code:"+entity.getContentEncoding());
body = EntityUtils.toString(entity);
EntityUtils.consume(entity);