title: Workaround to not shutdown DefaultHttpClient() each time after usage
body: <p>Each time I do a Http request I invoke this method</p>
  
  <pre><code>private JSONObject getRequest(HttpUriRequest requestType) {
          httpClient = new DefaultHttpClient(); // Creating an instance here
          try {
              httpResponse = httpClient.execute(requestType); 
              if (httpResponse != null &amp;&amp; httpResponse.getStatusLine().getStatusCode() == 200) {
                  httpEntity = httpResponse.getEntity();
  
                  if (httpEntity != null) {
                      InputStream instream = httpEntity.getContent(); 
                      String convertedString = convertStreamToString(instream);
                      return convertToJSON(convertedString);
                  } else return null;
  
              } else return null;
          } catch (ClientProtocolException e) {
              e.printStackTrace();
              return null;
          } catch (IOException e) {
              e.printStackTrace();
              return null;
          } finally {
              httpClient.getConnectionManager().shutdown(); // Close the instance here
          }
      }
  </code></pre>
  
  <p>So each time I create <code>new DefaultHttpClient()</code> object and close it after usage. If I don't close it I have numerous troubles with my application (Android). I have a foreboding this is not the cheapest operation and I need to improve this somehow. Is it possible to flush the connection somehow so I don't need to call shutdown method each time? </p>