新版本的HTTPCLIENT在API上有较大改动,
CloseableHttpClient httpclient = HttpClients.createDefault();
创建Httpclient,详情请参考example
http://hc.apache.org/httpcomponents-client-ga/examples.html
新版本的HTTPCLIENT在API上有较大改动,
CloseableHttpClient httpclient = HttpClients.createDefault();
创建Httpclient,详情请参考example
http://hc.apache.org/httpcomponents-client-ga/examples.html