[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-users
Subject:    Re: ntlm issues 1 - infinite loop
From:       Oleg Kalnichevski <olegk () apache ! org>
Date:       2006-10-31 22:50:18
Message-ID: 1162335019.2983.10.camel () localhost ! localdomain
[Download RAW message or body]

On Tue, 2006-10-31 at 14:30 -0800, Jeff Ling wrote:
> Hi Oleg,
> 
> Thanks for the response. Could you give me an example of how to properly use
> NTLM authentication?
> 
> Thanks,
> Jeff
> 

Jeff,

Just adding appropriate authentication credentials to the HttpState
should be sufficient. HttpClient will attempt to authenticate against
the target site using the given credentials and will return 401 status
code in case of authentication failure. You should be using a custom
CredentialsProvider only if you want to present an interactive
authentication dialog to the user.

Hope this helps

Oleg

> On 10/31/06, Oleg Kalnichevski <olegk@apache.org> wrote:
> >
> > On Tue, 2006-10-31 at 22:17 +0100, Oleg Kalnichevski wrote:
> >
> > Sorry about multiple emails.
> >
> > Oleg
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic