使用HttpClient发送请求、接收响应
摘要:使用HttpClient发送请求、接收响应很简单,只要如下几步即可。 1.创建HttpClient对象。 CloseableHttpClient httpclient = HttpClients.createDefault();2.如果需要发送GET请求,创建HttpGet对象;如果需要发送POST...
阅读全文
posted @ 2015-08-28 14:34
posted @ 2015-08-28 14:34
posted @ 2015-08-28 14:05
posted @ 2015-08-28 13:43
posted @ 2015-08-26 14:47
posted @ 2015-08-26 14:28
posted @ 2015-08-26 14:21