Oleg Kalnichevski wrote:

> If you want HttpClient to use proxy system properties, try out
> the route planner implementation based on java.net.ProxySelector

> DefaultHttpClient httpclient = new DefaultHttpClient();
> ProxySelectorRoutePlanner routePlanner = new
> ProxySelectorRoutePlanner(
>      httpclient.getConnectionManager().getSchemeRegistry(),
>      ProxySelector.getDefault());
> httpclient.setRoutePlanner(routePlanner);

  That works great.  Thanks to both of you!

  BTW, why such useful methods are not on the HttpClient interface, but rather 
on the AbstractHttpClient class (not even in a second interface)?  Is there any 
rational for that choice?

  Thanks again, regards,

-- 
Florent Georges
http://www.fgeorges.org/



























---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to