title: Can I set the proxy on the command line when using org.apache.commons.httpclient?
body: <p>If an application uses the java.net.* routines, I can set a proxy when invoking the application like this:</p>
  
  <pre><code>java -Dhttp.proxyHost=proxy.server.com -Dhttp.proxyPort=8000 &lt;whatever-the-app-is&gt;
  </code></pre>
  
  <p>However, I have an application (which I can't change) using org.apache.commons.httpclient to do the http communication. It doesn't specify a procxy server, but it does use the default HttpConnection. Is there some way I can tell the apache http client from the command line to use a proxy server?</p>