I prefer not to take any account for this, but as the answer from Eyal Schneider, find more information on using the MultiThreadedHttpConnectionManager on the excellent Vincent de Villers blog .
The code fragment is copied in case the link ever disappears:
HttpClient httpclient = new HttpClient(new MultiThreadedHttpConnectionManager()); GetMethod httpget = new GetMethod("http://www.myhost.com/"); try { httpclient.executeMethod(httpget); Reader reader = new InputStreamReader( httpget.getResponseBodyAsStream(), httpget.getResponseCharSet());
wmorrison365
source share