title: Increase Speed of HTTPClient Connections Android
body: <p>I have been searching around for hours now trying to find an answer to this but I cant seem to get anything. </p>
  
  <p>In an android app I am making, I am trying to connect to a website and get its headers. From  each page I need getStatusCode() and the response time. I can do this, but the problem is that it takes ages. Each connection is taking between 0.7-3seconds. I have tried a load of sites so its not just the servers problems. 
  The code is as below:</p>
  
  <pre><code>HttpParams params = new BasicHttpParams();
  HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
  HttpClient httpclient = new DefaultHttpClient(params);
  HttpResponse response;
  String responseString = null;
  
  long startTime = System.currentTimeMillis();
  response = httpclient.execute(new HttpGet(site));
  long elapsedTime = System.currentTimeMillis() - startTime;
  Log.v("debugging",elapsedTime+" ");
  </code></pre>
  
  <p>From what I have been reading, alot of people have been complaining about the speed. Some have said that specifying the http version makes it faster but that hasnt changed anything. 
  Does anyone know a way to make this faster or a quicker method. </p>
  
  <p>Thanks</p>