|
I would like to use jWebUnit, however I can’t figure out how to use NTLM authentication. HtmlUnit supports this. Using HtmlUnit I would write something like:
final WebClient webClient = new WebClient(); DefaultCredentialsProvider creds = new DefaultCredentialsProvider(); creds.addNTLMCredentials("userName", "password", null, -1, "myComputerName", "myDomain"); webClient.setCredentialsProvider(creds); webClient.setRedirectEnabled(true); URL url = "" URL("http://myappUrl.net/");
Using just the normal setAuthorization method does not work for me. Any ideas?
Joe Athman
============================================================================== This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system. ============================================================================== The St. Paul Travelers e-mail system made this annotation on 09/05/06, 11:44:49. |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
