Hi woowoo, woowoo <[EMAIL PROTECTED]> wrote on 08.09.2005 14:50:21:
> I have included code and the log file that works correctly when the > proxy domain, username, and password are correct. The problem is that > the users will set up their credentials once (stored in a properties > file) and then not be prompted when the application is run. So when the > HttpClient is instantiated and the post method is executed, it retried > endlessly with a 407 error, even when I added: > > client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new > DefaultHttpMethodRetryHandler(3, false)); > > How do I get it to retry only 3 times? > If you set a credentials provider, it's your credentials provider that has to detect that the password was already tried unsuccessfully. The HttpClient cannot know where the passwords come from and that it wasn't a user that re-entered the same password after having a phone call with the server administrator to unlock the password. The retry counter is for internal retries due to communication failures, not for password authentication. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
