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.143 diff -u -r1.143 HttpMethodBase.java --- java/org/apache/commons/httpclient/HttpMethodBase.java 1 May 2003 19:14:17 -0000 1.143 +++ java/org/apache/commons/httpclient/HttpMethodBase.java 2 May 2003 17:43:32 -0000 @@ -255,8 +255,8 @@ if (uri == null || uri.equals("")) { uri = "/"; } - URI parsedURI = new URI(uri); - + URI parsedURI = new URI(uri.toCharArray()); + // only set the host if specified by the URI if (parsedURI.isAbsoluteURI()) { hostConfiguration = new HostConfiguration(); @@ -266,13 +266,12 @@ parsedURI.getScheme() ); } - // else { FIXME: just in case, is not abolsute uri, then? - + // set the path, defaulting to root setPath( parsedURI.getPath() == null ? "/" - : parsedURI.getPath() + : parsedURI.getEscapedPath() ); setQueryString(parsedURI.getEscapedQuery());