@Test public void postString() throws Exception{ HttpClientUtil httpUtil = new HttpClientUtil(); httpUtil.post("http: }
private String post(String url, List<NameValuePair> nvps, String encoding, CloseableHttpClient httpClient) throws Exception { HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding)); return execute(url, encoding, httpPost, httpClient); }
HttpClientUtil { private String post(String url, List<NameValuePair> nvps, String encoding, CloseableHttpClient httpClient) throws Exception { HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding)); return execute(url, encoding, httpPost, httpClient); } }
HttpClientUtil { private String post(String url, List<NameValuePair> nvps, String encoding, CloseableHttpClient httpClient) throws Exception { HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding)); return execute(url, encoding, httpPost, httpClient); }  }
HttpClientUtil { private String post(String url, List<NameValuePair> nvps, String encoding, CloseableHttpClient httpClient) throws Exception { HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding)); return execute(url, encoding, httpPost, httpClient); }  String get(String url, String encoding); String get(String url); String getSSL(String url, String encoding); String getSSL(String url); String post(String url, List<NameValuePair> nvps,
			String encoding); String post(String url, List<NameValuePair> nvp); String post(String url, String content); String postSSL(String url, List<NameValuePair> nvps,
			String encoding); String postSSL(String url, List<NameValuePair> nvps); byte[] getFile(String url); String postFile(String url,String fileName,File file); void setConnectTimeout(int connectTimeout); void setConnectionRequestTimeout(int connectionRequestTimeout); void setSocketTimeout(int socketTimeout); void setHeaders(List<Header> headers); void addHeader(String name,String value); }
HttpClientUtil { private String post(String url, List<NameValuePair> nvps, String encoding, CloseableHttpClient httpClient) throws Exception { HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, encoding)); return execute(url, encoding, httpPost, httpClient); }  String get(String url, String encoding); String get(String url); String getSSL(String url, String encoding); String getSSL(String url); String post(String url, List<NameValuePair> nvps,
			String encoding); String post(String url, List<NameValuePair> nvp); String post(String url, String content); String postSSL(String url, List<NameValuePair> nvps,
			String encoding); String postSSL(String url, List<NameValuePair> nvps); byte[] getFile(String url); String postFile(String url,String fileName,File file); void setConnectTimeout(int connectTimeout); void setConnectionRequestTimeout(int connectionRequestTimeout); void setSocketTimeout(int socketTimeout); void setHeaders(List<Header> headers); void addHeader(String name,String value);  }