java - Can I set the proxy on the command line when using org.apache.commons.httpclient? -


if application uses java.net.* routines, can set proxy when invoking application this:

java -dhttp.proxyhost=proxy.server.com -dhttp.proxyport=8000 <whatever-the-app-is> 

however, have application (which can't change) using org.apache.commons.httpclient http communication. doesn't specify procxy server, use default httpconnection. there way can tell apache http client command line use proxy server?

unfortunately, don't think can. way application read system property , set in defaulthttpparams object.

take @ this thread on httpclient-user group more details.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -