Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从httpcomponent调用获取Curl_Curl_Apache Httpcomponents - Fatal编程技术网

从httpcomponent调用获取Curl

从httpcomponent调用获取Curl,curl,apache-httpcomponents,Curl,Apache Httpcomponents,谁知道如何从httpComponent调用中获取curl CloseableHttpClient httpclient = HttpClients.createDefault(); URIBuilder builder = new URIBuilder(); builder.setScheme("http").setHost("localhost:8080/AppDev") .setPath("/rest/user/authenticate/") .setParameter("user

谁知道如何从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);
我想从那次执行中得到旋度

有什么建议吗