hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Pill" <apa...@webdav.info>
Subject Re: RE: Http client 3.0: Setting proxy via command line options
Date Mon, 26 Jun 2006 14:57:09 GMT
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 <arokde@voiceobjects.com>
> An: HttpClient User Discussion <httpclient-user@jakarta.apache.org>
> 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: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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message