GetClient { public void get2() throws IOException { String APIKEY = "4b441cb500f431adc6cc0cb650b4a5d0"; String INFO = new URLCodec().encode("who are you", "utf-8"); String requesturl = "http: CloseableHttpClient httpclient = HttpClients.createDefault(); CloseableHttpResponse response = null; try { HttpGet httpGet = new HttpGet(requesturl); response = httpclient.execute(httpGet); HttpEntity entity = response.getEntity(); String content = EntityUtils.toString(entity, "utf-8"); log.info(content); EntityUtils.consume(entity); } catch (Exception e) { log.error("" + e); } finally { if (response != null) response.close(); } }  void quickget(); void get(); void get2(); HttpParams getHttpParams(); void standard();  }
@Test public void testGet2() throws Exception { getClient.get2(); }