CloseableHttpClient httpClient = HttpClients.createDefault(); String entityStr = null; CloseableHttpResponse response = null; HttpPost httpPost = new HttpPost("http://localhost:8080/test/downLoadFiletoClient"); List<NameValuePair> list = new LinkedList<>(); BasicNameValuePair param1 = new BasicNameValuePair("UUID", UUID); list.add(param1); UrlEncodedFormEntity entityParam = new UrlEncodedFormEntity(list, "UTF-8"); httpPost.setEntity(entityParam);
client url
最新推荐文章于 2021-12-01 17:25:49 发布