On Tue, 2008-05-20 at 11:12 -0400, Ashish Kulkarni wrote: > Hi > This is the error i am getting > > 2008-05-20 11:08:33,437 DEBUG [main] params.DefaultHttpParams > (DefaultHttpParams.java:151) - Set parameter http.auth.scheme-priority = > [Basic]
The client has been configured to accept basic authentication only > 2008-05-20 11:08:33,437 DEBUG [main] params.DefaultHttpParams > (DefaultHttpParams.java:151) - Set parameter http.method.retry-handler = > [EMAIL PROTECTED] > 2008-05-20 11:08:33,437 DEBUG [main] httpclient.HttpConnection > (HttpConnection.java:692) - Open connection to uskzoas163:80 > 2008-05-20 11:08:33,487 DEBUG [main] httpclient.HttpMethodBase > (HttpMethodBase.java:1352) - Adding Host request header > 2008-05-20 11:08:33,557 DEBUG [main] httpclient.HttpMethodDirector > (HttpMethodDirector.java:843) - Authorization required > 2008-05-20 11:08:33,557 DEBUG [main] auth.AuthChallengeProcessor > (AuthChallengeProcessor.java:90) - Supported authentication schemes in the > order of preference: [Basic] > 2008-05-20 11:08:33,557 DEBUG [main] auth.AuthChallengeProcessor > (AuthChallengeProcessor.java:111) - Challenge for Basic authentication > scheme not available > 2008-05-20 11:08:33,557 WARN [main] httpclient.HttpMethodDirector > (HttpMethodDirector.java:697) - Unable to respond to any of these > challenges: {ntlm=NTLM} > whereas the server supports NTLM authentication only. So, no party. Besides, this is wrong > > new AuthScope("http://uskzoas163/MpssDocDisplay/", 80), > > new UsernamePasswordCredentials(userId, password) > > ); > > AuthScope expects a hostname, not a URI, as the first parameter. Oleg > > GetMethod method = new GetMethod(" > > http://uskzoas163/MpssDocDisplay/ALTERNATE/PMS-PAD/V_1/00-625080-000_PMS.pdf > > "); > > method.setDoAuthentication( true ); > > method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, > > new DefaultHttpMethodRetryHandler(3, false)); > > > > int statusCode = client.executeMethod(method); > > > > status i get is 401, not authorised, > > Ashish > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]