You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Thorsten Scherler (JIRA)" <ji...@apache.org> on 2010/12/26 15:40:45 UTC

[jira] Closed: (DROIDS-104) DroidsHttpClient unable to use a proxy

     [ https://issues.apache.org/jira/browse/DROIDS-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler closed DROIDS-104.
------------------------------------

    Resolution: Fixed

> DroidsHttpClient unable to use a proxy
> --------------------------------------
>
>                 Key: DROIDS-104
>                 URL: https://issues.apache.org/jira/browse/DROIDS-104
>             Project: Droids
>          Issue Type: Bug
>          Components: core
>            Reporter: Paul Rogalinski
>
> createHttpRoutePlanner() method in DroidsHttpClient does not provide any ProxySelector:
>   @Override
>  protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null);
> }
> proposed solution:
> @Override
> protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new DefaultHttpRoutePlanner (getConnectionManager().getSchemeRegistry());
> }
> once patched one can set set the proxy in a standard httpclient manner:
> doirdsHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,new HttpHost("my.proxy.host",8080))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.