[
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.