title: Hi, how can I configure Apache HttpClient to bypass proxy for local adresses?
body: <p>I am configuring the client like this:</p>
  
  <pre><code>DefaultHttpClient httpClient = new DefaultHttpClient();
  HttpHost proxy = new HttpHost(proxyHost, proxyPort, "http");
  httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
  </code></pre>
  
  <p>Now, I would like to tell my client not to use proxy for "localhost" or 127.0.0.1.</p>
  
  <p>Thanks!</p>