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 Srihttp <sr...@fiserv.com> on 2007/09/04 23:01:57 UTC

Re: HttpClient fails with Unauthorized exception with reverse proxy

Roland,

This issue is bit different which is not addressed by documentation. My
application uses java web start and the proxy authentication works fine with
java url connection. Now when I switched to HttpClient, some how these
credentials are lost. Even setting them explicitly using credentials and
host configuration is not working. I am wondering, is there any way solve
this  for this problem.
Thanks,
Sri


Roland Weber-3 wrote:
> 
> Hello Sri,
> 
> you should find our Authentication Guide helpful:
> http://jakarta.apache.org/httpcomponents/httpclient-3.x/authentication.html
> 
> Make sure you know _what_ authentication mechanism the
> proxy requires, and to supply the appropriate type of
> credentials. In particular, NTLM authentication requires
> NTCredentials.
> 
> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/HttpClient-fails-with-Unauthorized-exception-with-reverse-proxy-tf4351766.html#a12486566
Sent from the HttpClient-User mailing list archive at Nabble.com.


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


Re: HttpClient fails with Unauthorized exception with reverse proxy

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2007-09-04 at 14:01 -0700, Srihttp wrote:
> Roland,
> 
> This issue is bit different which is not addressed by documentation. My
> application uses java web start and the proxy authentication works fine with
> java url connection. Now when I switched to HttpClient, some how these
> credentials are lost. Even setting them explicitly using credentials and
> host configuration is not working. I am wondering, is there any way solve
> this  for this problem.
> Thanks,
> Sri
> 

Sri,

Post a context/wire log of the HTTP session if you expect any further
help

http://jakarta.apache.org/httpcomponents/httpclient-3.x/logging.html

Oleg

> 
> Roland Weber-3 wrote:
> > 
> > Hello Sri,
> > 
> > you should find our Authentication Guide helpful:
> > http://jakarta.apache.org/httpcomponents/httpclient-3.x/authentication.html
> > 
> > Make sure you know _what_ authentication mechanism the
> > proxy requires, and to supply the appropriate type of
> > credentials. In particular, NTLM authentication requires
> > NTCredentials.
> > 
> > cheers,
> >   Roland
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> > 
> > 
> > 
> 


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