hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Weber <senior.we...@gmail.com>
Subject Re: HTTP CONNECT Method gone?
Date Wed, 11 Mar 2009 21:09:43 GMT
Hi again!
I wonder if this is not already implemented with

        HttpRoute route = new HttpRoute(targetHost, null,
proxies.toArray(new HttpHost[]{}), false, TunnelType.TUNNELLED,
LayerType.LAYERED);

        httpclient.getParams().setParameter(ConnRoutePNames.FORCED_ROUTE,
route);

For non-authenticated proxies?



2009/3/11 Andreas Weber <senior.weber@gmail.com>:
> Hi!
> This will help me indeed; Thank you very much!
>
>
> 2009/3/11 Oleg Kalnichevski <olegk@apache.org>:
>> Andreas Weber wrote:
>>>
>>> Hi!
>>> I wonder who to accomplish the
>>> "Tunneled HTTPS connections through HTTP proxies, via the CONNECT
>>> method." with httpclient 4.
>>
>> HttpClient implements only the simplest case: tunneling through one proxy
>> only.
>>
>> http://hc.apache.org/httpcomponents-client/httpclient/xref/org/apache/http/impl/client/DefaultRequestDirector.html#656
>>
>> In order to support more complex cases such as multiple proxy chaining one
>> needs to subclass DefaultRequestDirector and override the
>> #createTunnelToProxy method
>>
>> http://hc.apache.org/httpcomponents-client/httpclient/xref/org/apache/http/impl/client/DefaultRequestDirector.html#793
>>
>> Hope this helps
>>
>> Oleg
>>
>>
>> A search on the wiki gives 0 results for
>>>
>>> "connect method" and a search on this mailing list via markmail gives
>>> only results for httpclient 3.
>>>
>>> My goal would be to connect to a server via several proxies, using
>>> "CONNECT", and show where the communication fails (if it fails to get
>>> through, as some proxies do not allow "CONNECT").
>>>
>>> Any help (or a hint where to search) would be highly appreciated :-)
>>>
>>> Regards,
>>>
>>> Andreas
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message