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 "Otis Gospodnetic (JIRA)" <ji...@apache.org> on 2010/12/24 05:46:47 UTC
[jira] Commented: (DROIDS-104) DroidsHttpClient unable to use a
proxy
[ https://issues.apache.org/jira/browse/DROIDS-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974844#action_12974844 ]
Otis Gospodnetic commented on DROIDS-104:
-----------------------------------------
This issue should be marked as Fixed, Javier and Paul. I don't seem to have the privilege to make this change in JIRA, otherwise I'd do it.
> 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.