Index: src/java/org/apache/commons/httpclient/auth/AuthState.java =================================================================== --- src/java/org/apache/commons/httpclient/auth/AuthState.java (revision 151579) +++ src/java/org/apache/commons/httpclient/auth/AuthState.java (working copy) @@ -1,7 +1,7 @@ /* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/auth/AuthState.java,v 1.3 2004/11/02 19:39:16 olegk Exp $ * $Revision: 1.3 $ - * $Date: 2004/11/02 19:39:16 $ + * $Date$ * * ==================================================================== * @@ -115,7 +115,7 @@ if (this.authScheme != null) { throw new IllegalStateException("Authentication state already initialized"); } - this.authScheme = AuthPolicy.getAuthScheme("basic"); + this.authScheme = AuthPolicy.getAuthScheme(AuthPolicy.PREEMPTIVE); this.preemptive = true; } Index: src/java/org/apache/commons/httpclient/auth/AuthPolicy.java =================================================================== --- src/java/org/apache/commons/httpclient/auth/AuthPolicy.java (revision 151579) +++ src/java/org/apache/commons/httpclient/auth/AuthPolicy.java (working copy) @@ -1,7 +1,7 @@ /* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/auth/AuthPolicy.java,v 1.6 2004/05/13 04:02:00 mbecke Exp $ * $Revision: 1.6 $ - * $Date: 2004/05/13 04:02:00 $ + * $Date$ * * ==================================================================== * @@ -95,10 +95,16 @@ */ public static final String BASIC = "Basic"; + /** + * The authentication scheme to be used for preemptive authetication + */ + public static final String PREEMPTIVE = "preemptive"; + static { AuthPolicy.registerAuthScheme(NTLM, NTLMScheme.class); AuthPolicy.registerAuthScheme(DIGEST, DigestScheme.class); AuthPolicy.registerAuthScheme(BASIC, BasicScheme.class); + AuthPolicy.registerAuthScheme(PREEMPTIVE, BasicScheme.class); } /** Log object. */