On Wed, 2006-09-13 at 08:14 +0200, Thomas Tasior wrote:
> > I have pretty much run out of ideas.
> >
> > The only thing I can think of is that ConsoleAuthPrompter you
> > are using messes up non-ASCII characters. Try using standard
> > HttpClient API and stick user credentials into the HttpState
> > instance prior to executing the request.
> >
>
>
> Hi,
> The following code snippet produces this:
>
> 13.09.2006 08:10:50 org.apache.commons.httpclient.auth.AuthChallengeProcessor
> selectAuthScheme
> INFO: ntlm authentication scheme selected
> 13.09.2006 08:10:51 org.apache.commons.httpclient.HttpMethodDirector
> processWWWAuthChallenge
> INFO: Failure authenticating with NTLM <any realm>@w2003ex:80
> HTTP/1.1 401 Unauthorized
> <html><head><title>Error</title></head><body>Fehler: Zugriff
> verweigert.</body></html>
>
> Snippet:
> HttpClient client = new HttpClient();
> client.getParams().setParameter("http.protocol.credential-charset","ISO-8859-1");
> client.getState().setCredentials(AuthScope.ANY,new
> NTCredentials("w.röntgen","123456","w2003ex","w2003ex"));
> GetMethod httpget = new GetMethod("http://w2003ex/exchange");
>
> With user "n.bohr" it works.
>
> Thomas
>
Try UTF-8 instead of ISO-8859-1, and if that does not help, I give up.
Oleg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]