HttpClientBuilder httpClientBuilder =HttpClientBuilder.create(); CloseableHttpClient build = httpClientBuilder.build(); HttpPost post = new HttpPost("http://www.apache.org/"); CloseableHttpResponse execute = build.execute(post); HttpEntity entity = execute.getEntity(); System.out.println(entity.getContent());
使用HttpClient操作请求
最新推荐文章于 2020-02-11 22:57:43 发布