What about "https:" requests, which should be handled the same way?
Should we set the server host and server port based on the values included
in the absolute URL? Do we also have to act as a proxy server if the
requested URL is not supported by this server?
Craig
On 18 Jun 2001 [EMAIL PROTECTED] wrote:
> remm 01/06/17 17:14:44
>
> Modified: catalina/src/share/org/apache/catalina/connector/http
> HttpProcessor.java
> Log:
> - Handle requests on absolute URIs.
>
> Revision Changes Path
> 1.26 +15 -4
>jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java
>
> Index: HttpProcessor.java
> ===================================================================
> RCS file:
>/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
> retrieving revision 1.25
> retrieving revision 1.26
> diff -u -r1.25 -r1.26
> --- HttpProcessor.java 2001/05/16 17:55:42 1.25
> +++ HttpProcessor.java 2001/06/18 00:14:44 1.26
> @@ -1,7 +1,7 @@
> /*
> - * $Header:
>/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
> 1.25 2001/05/16 17:55:42 remm Exp $
> - * $Revision: 1.25 $
> - * $Date: 2001/05/16 17:55:42 $
> + * $Header:
>/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
> 1.26 2001/06/18 00:14:44 remm Exp $
> + * $Revision: 1.26 $
> + * $Date: 2001/06/18 00:14:44 $
> *
> * ====================================================================
> *
> @@ -107,7 +107,7 @@
> *
> * @author Craig R. McClanahan
> * @author Remy Maucherat
> - * @version $Revision: 1.25 $ $Date: 2001/05/16 17:55:42 $
> + * @version $Revision: 1.26 $ $Date: 2001/06/18 00:14:44 $
> */
>
> final class HttpProcessor
> @@ -735,6 +735,17 @@
> } else {
> request.setQueryString(null);
> uri = new String(requestLine.uri, 0, requestLine.uriEnd);
> + }
> +
> + // Checking for an absolute URI (with the HTTP protocol)
> + if (uri.startsWith("http://")) {
> + // Parsing out protocol and host name
> + int pos = uri.indexOf('/', "http://".length());
> + if (pos == -1) {
> + uri = "";
> + } else {
> + uri = uri.substring(pos);
> + }
> }
>
> // Parse any requested session ID out of the request URI
>
>
>
>