Index: java/org/apache/commons/httpclient/HttpMethodBase.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v retrieving revision 1.152 diff -u -r1.152 HttpMethodBase.java --- java/org/apache/commons/httpclient/HttpMethodBase.java 13 Jun 2003 21:32:17 -0000 1.152 +++ java/org/apache/commons/httpclient/HttpMethodBase.java 20 Jun 2003 12:59:56 -0000 @@ -1167,7 +1167,9 @@ } //invalidate the list of authentication attempts - this.realms.clear(); + this.realms.clear(); + //remove exisitng authentication headers + removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP); //update the current location with the redirect location. //avoiding use of URL.getPath() and URL.getQuery() to keep //jdk1.2 comliance.