Hello Amey, thanks a lot for your quick response.
Yes, I do know that those -Dhttp... parameters do not work, as httpClient does not use the SUN http classes, but opens sockets directly. Unfortunately I do not use the HttpClient classes directly, but have an application (NetTool 4.5.1) which uses the HttpClient, without setting the proxy in the API explicitely. So my only possibility to set a proxy (and use HttpClient from behind a firewall) would be, if the HttpClient implementation would pick up some -Dxxx parameters or some property file for proxy specification. For compatibility reasons with the SUN classes the -Dhttp... setting would be great. Best regards Juergen Pill > > -------- Original-Nachricht -------- > Datum: Mon, 26 Jun 2006 16:40:12 +0200 > Von: Amey Rokde <[EMAIL PROTECTED]> > An: HttpClient User Discussion <[email protected]> > Betreff: RE: Http client 3.0: Setting proxy via command line options > > 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:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 3:59 PM > To: [email protected] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
