hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: https proxy authentication error
Date Mon, 20 Mar 2006 17:56:47 GMT
On Thu, 2006-04-20 at 16:48 +0200, Thierry Sechao wrote:
> Oleg,
> 
> Thanks for your reply,
> 
> when I execute the test which works fine, that is I just change the ligne
> 
> hostConfiguration.setHost("myhost", 443, new Protocol("https", new 
> SSLProtocolSocketFactory(), 443));
> 
> by
> 
> hostConfiguration.setHost("myhost", 443);
> 
> I have some log (see below) which looks similar "Required credentials 
> not available for BASIC <any realm>@myhost:443 ...",  but it works!

BASIC <any realm>@myhost:443

This has nothing to do with proxy authentication.


> I notice that this time, the mode preemptive works too. the 
> Proxy-Authorization header is submitted at the first request whereas in 
> the failed test, it is never submitted.
> 
> I also try to set the REALM without success.
> 
> proxyClient.getState().setProxyCredentials(new AuthScope("myproxy", 
> 8080, "MYREALM"), userCredential) ;	
> 
> thanks again.
> 

Post the *complete* source code of your test app

Oleg


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


Mime
View raw message