Hello Roland, I do understand now, that currently only the application can set the proxy, thanks for the clarification.
Wouldn´t it be a nice feature, if via some command line options the proxy can be set from outside, without the need of involving application programming. Currently I can use the application NetTool only within the intranet, but - as NetTool is not programmed against the proxy settings of HttpClient - I can not use it within the internet (firewall). Would this command line setting not be a very nice change enhancement within HttpClient? Best regards Juergen Pill > > -------- Original-Nachricht -------- > Datum: Tue, 27 Jun 2006 20:44:19 +0200 > Von: Roland Weber <[EMAIL PROTECTED]> > An: HttpClient User Discussion <[email protected]> > Betreff: Re: Http client 3.0: Setting proxy via command line options > > Hello Jürgen, > > > 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. > > Try changing the default parameters: > > http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/params/DefaultHttpParams.html#getDefaultParams() > > > For compatibility reasons with the SUN classes the -Dhttp... setting > would > > be great. > > It's up to your application to get those system properties and > put them in the default parameters. > > hope that helps, > Roland > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
