How can i disconnect an org.apache.http.client.HttpClient
object?
I'm creating it like this but it doesn't have any disconnect()
or getHttpConnectionManager
!
HttpClient httpclient = new DefaultHttpClient();
Thanks
How can i disconnect an org.apache.http.client.HttpClient
object?
I'm creating it like this but it doesn't have any disconnect()
or getHttpConnectionManager
!
HttpClient httpclient = new DefaultHttpClient();
Thanks
Use
httpClient.getConnectionManager().shutdown();
Note: getHttpConnectionManager
was from HttpClient 3.1.