TestPlan does not support NTLM authentication with HTMLUnit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
New
|
Undecided
|
Unassigned |
Bug Description
The problem is known, there are reasons for not having NTLM in the Apache HttpClient library, BUT
the jar file to support authentication to NTLM is just one click away, it could use Web.Session.User and
Web.Session.Pass
http://
Here is the diff that I think is relevant, the other classes are already in the mentioned web page
mikaty@
=== modified file 'src/share/
--- src/share/
+++ src/share/
@@ -30,6 +30,9 @@
import java.text.
import javax.xml.
+import ntlm.NTLMScheme
+
+import org.apache.
import org.w3c.dom.*;
import testplan.auto.*;
@@ -81,6 +84,17 @@
//WTF? why doesn't it use the java default, and why is it default to 0 (infinite), that's just plain retarded
wc.setTimeout( Integer.parseInt( System.getProperty( "sun.net.
wc.getPage(
+ wc.setWebConnec
+
+ protected synchronized AbstractHttpClient getHttpClient() {
+ AbstractHttpClient httpClient = super.getHttpCl
+ httpClient.
+ return httpClient;
+ }
+ });
+ DefaultCredenti
+ (DefaultCredent
+ credentialProvi
}
private SgmlPage getCurrentSgmlP
description: | updated |