public static ResponseEntity getByHeader(String uri, Map<String, String> header){
    	ResponseEntity baseOutPut = new ResponseEntity();
    	HttpGet httpGet = new HttpGet(uri);
    	CloseableHttpResponse httpResponse = null;
    	for (Entry<String, String> entry : header.entrySet()) {
			String key = entry.getKey();
	        String value = entry.getValue();
	        httpGet.setHeader(key, value);
		}
    	try {
			httpResponse = httpClient.execute(httpGet);
	        try {
				HttpEntity httpEntity = httpResponse.getEntity();//获取body
				int statusCode = httpResponse.getStatusLine().getStatusCode();
				baseOutPut.setCode(statusCode);
				if(httpEntity != null){
					baseOutPut.setBody(EntityUtils.toString(httpEntity,DEFAULT_CHARSET));
					return baseOutPut;
				}
			} catch (ParseException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} finally{
				if (httpResponse != null) {
				    // 关闭连接
					httpResponse.close();
				}
			}
		} catch (ClientProtocolException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			if(httpGet!=null){
				//释放链接
				httpGet.releaseConnection();
			}
		}
        return null;
    	
    }