You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by François-Xavier Bonnet <fr...@centraliens.net> on 2013/02/14 16:23:54 UTC

Basic proxy authentication on HttpClient 4.3

Hi

I am trying to use HttpClient 4.3 with a proxy that requires basic 
authentication. What is the proper way to do that on HttpClient 4.3 
trunk without using any deprecated API ?

Francois-Xavier

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


Re: Basic proxy authentication on HttpClient 4.3

Posted by François-Xavier Bonnet <fr...@centraliens.net>.
Thanks Oleg, it works.

On 14/02/2013 16:43, olegk@apache.org wrote:
> On Thu, 2013-02-14 at 16:23 +0100, François-Xavier Bonnet wrote:
>> Hi
>>
>> I am trying to use HttpClient 4.3 with a proxy that requires basic
>> authentication. What is the proper way to do that on HttpClient 4.3
>> trunk without using any deprecated API ?
>>
>> Francois-Xavier
>>
> Francois-Xavier
>
> I do not think it is that radically different. Take a look at the sample
> app:
>
> http://hc.apache.org/httpcomponents-client-dev/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java
>
> Let me know if that does not help.
>
> Oleg
>
>


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


Re: Basic proxy authentication on HttpClient 4.3

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2013-02-14 at 16:23 +0100, François-Xavier Bonnet wrote:
> Hi
> 
> I am trying to use HttpClient 4.3 with a proxy that requires basic 
> authentication. What is the proper way to do that on HttpClient 4.3 
> trunk without using any deprecated API ?
> 
> Francois-Xavier
> 

Francois-Xavier

I do not think it is that radically different. Take a look at the sample
app:

http://hc.apache.org/httpcomponents-client-dev/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java

Let me know if that does not help.

Oleg



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