谁知道如何从httpComponent调用curl?
CloseableHttpClient httpclient = HttpClients.createDefault();
URIBuilder builder = new URIBuilder();
builder.setScheme("http").setHost("localhost:8080/AppDev")
.setPath("/rest/user/authenticate/")
.setParameter("username", "joe")
.setParameter("password", "123456");
URI uri = builder.build();
HttpPost httppost = new HttpPost(uri);
CloseableHttpResponse response = httpclient.execute(httppost);
我希望从执行中得到卷曲。
一些建议?