title: Use 4.0 version of httpclient
body: <p>I want to update httpclient version in my project.The project was using http 3.1 jar now I need to upgrade 4.0 version.I downloaded repository from <a href="http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient/4.0">here</a></p>
  
  <p>I changed most of the code but stuck on some api and method.I googled much but not able to find the equivalent of that, I am describing below that:</p>
  
  <p>What is the eqvivalent of MultiThreadedHttpConnectionManager? </p>
  
  <p>I found PoolingClientConnectionManager for httpClient 4.x but it doesn't exist in 4.0 version.
  here is my old codebase for httpversion 3.1</p>
  
  <pre><code>MultiThreadedHttpConnectionManager connMgr = new MultiThreadedHttpConnectionManager();
      m_client = new HttpClient(connMgr);
  
      /*
       * Maximum concurrent connections that are allowed to a given
       * domain/host
       */
      m_client.getHttpConnectionManager()
              .getParams()
              .setMaxConnectionsPerHost(
                      HostConfiguration.ANY_HOST_CONFIGURATION,
                      maxConcurrentConnections);
  
      /*
       * 
       * How long to wait before timing out on a http connection
       */
      m_client.getHttpConnectionManager().getParams()
              .setConnectionTimeout(connectionTimeout);
  
      /*
       * How long to wait before timing out on a socket connection
       */
      m_client.getParams().setSoTimeout(socketTimeout);
  </code></pre>