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.86 diff -u -r1.86 HttpMethodBase.java --- java/org/apache/commons/httpclient/HttpMethodBase.java 10 Dec 2002 04:05:03 -0000 1.86 +++ java/org/apache/commons/httpclient/HttpMethodBase.java 11 Dec 2002 03:38:17 -0000 @@ -68,7 +68,6 @@ import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URL; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; @@ -966,9 +965,11 @@ return false; } - //update the current location with the redirect location - setPath(redirectUrl.getPath()); - setQueryString(redirectUrl.getQuery()); + //update the current location with the redirect location. + //avoiding use of URL.getPath() and URL.getQuery() to keep + //jdk1.2 comliance. + setPath( URIUtil.getPath( redirectUrl.toString() ) ); + setQueryString( URIUtil.getQuery( redirectUrl.toString() ) ); if (log.isDebugEnabled()) { log.debug("Redirecting from '" + currentUrl.toExternalForm()