, December 08, 2000 4:02 PM
To: [EMAIL PROTECTED]
Subject: Re: relative redirect problem using port mapping vip
Technically you should never be relying on sending a relative redirect to
begin with. The redirect method says that is should be an absolute URL.
Here's the code we use in my
Hola Benoit:
properly. It
takes the host name from the request header but takes the
port from the web
server (from HttpRequestAdapter.getServerPort). therefore creating a
redirect url command with the right IP address but the wrong
port (in our
case 8080 i.o. 80). That seems to be a
, 2000 11:13 AM
To: '[EMAIL PROTECTED]'
Subject: RE: relative redirect problem using port mapping vip
Hola Benoit:
properly. It
takes the host name from the request header but takes the
port from the web
server (from HttpRequestAdapter.getServerPort). therefore creating
I ma still using 3.1 but I looked at the code of 3.2 and it
is doing the
same thing... from the redirect in the DefaultServlet class to the
toAbsolute method in the HttpServletResponseFacade class and the
HttpRequestAdapter.getServerPort() method
Have a look in the
Message-
From: Nacho [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 11:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: relative redirect problem using port mapping vip
I ma still using 3.1 but I looked at the code of 3.2 and it
is doing the
same thing... from the redirect
Technically you should never be relying on sending a relative redirect to
begin with. The redirect method says that is should be an absolute URL.
Here's the code we use in my project to overcome all of the redirect issues
we ran into:
protected String getServletUrl(HttpServletRequest req,