title: httpClient proxy support in apache commons 3.1
body: <p>I am using apache commons 3.1 to implement httpClient with proxy support.
  I am trying to connect to a remote host through proxy. The proxy server is configured without any authentication, however the the remote host is configured with authentication. 
  When I am passing the proxy parameters through properties file, it gives warning while execution: </p>
  
  <p>WARN - Required proxy credentials not available for BASIC @xx.xx.xx.xx
  WARN - Preemptive authentication requested but no default proxy credentials availble</p>
  
  <p>But the execution goes ahead.</p>
  
  <p>On the other hand when I am passing the proxy parameters through the JVM arguments then the again the same warning is given and the execution is stopped.</p>
  
  <p>Is there any specific reason for this behavior? Is there any difference in passing the proxy parameters through properties file and through JVM arg?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>if(System.getProperty("http.proxyHost") != null &amp;&amp; System.getProperty("http.proxyPort") != null) {
              httpClient.getHostConfiguration().setProxy(System.getProperty("http.proxyHost"), Integer.parseInt(System.getProperty("http.proxyPort")));
          }
          else if(AMXAdminTask.props.getProperty("http.proxyHost") != null &amp;&amp; AMXAdminTask.props.getProperty("http.proxyPort") != null) {
              httpClient.getHostConfiguration().setProxy(Propfile.props.getProperty("http.proxyHost"), Integer.parseInt(Propfile.props.getProperty("http.proxyPort")));
          }
  </code></pre>