hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amey Rokde" <aro...@voiceobjects.com>
Subject RE: Http client 3.0: Setting proxy via command line options
Date Mon, 26 Jun 2006 14:40:12 GMT
Hi Juergen
We had similiar usecase of requiring the proxy setting through command lines.
Unfortunately jvm level parameters do not work because as per i understand they are used by
urlconnection object and http client directly makes a socket connection.
What we did is to read this parameters through system properties and used it where httpclient
was called.
Hope this helps 
Amey



-----Original Message-----
From: Juergen Pill [mailto:apache@webdav.info]
Sent: Monday, June 26, 2006 3:59 PM
To: httpclient-user@jakarta.apache.org
Subject: Http client 3.0: Setting proxy via command line options


Hello,

is there a way to specify the proxy settings (host and port) via a command 
line setting similar to the sun way (or even via some property file) e.g.:

-Dhttp.proxyHost=abcdef -Dhttp.proxyPort=1234

The proxy can be set programatically, but if this setting is missing, is 
there a way to specify itĀ from outside (or if present, even overwrite it).

Best regards

Juergen Pill    

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message