如何断开组织.apache.http.client.HttpClient对象?
我正在创建它,但是它没有任何disconnect()或getHttpConnectionManager!
HttpClient httpclient = new DefaultHttpClient();
谢谢
解决方法:
采用
httpClient.getConnectionManager().shutdown();
注意:getHttpConnectionManager来自HttpClient 3.1.