I've been trying to use the HttpServletRequest.getRequestURL in tomcat 5 to return the user's original URL. I need to extract the scheme, port, servername that the client used on his side.
From the specs, that method should do it. I first tried getServerName and getServerScheme but later found out that those values are taken from the HTTP attribute SERVER_NAME that is probably overriden by apache to set his own.
My problem is. I call a server with his IP adress: let's say 192.168.2.1. That server has a valid certificate install with the common name mysite.cgi.com
So I type the url: https://192.168.2.1/myServlet
The servlet does some validation and then send a URL redirect to request.getRequestURL() + "/myPage";
The client ends up on https://mysite.cgi.com/myPage
How come??? The client never entered mysite.cgi.com anywhere... I'm confused...
Apache 1.3.26 Tomcat 5.0.16 mod_jk with ajp13
Jean-Philippe B�langer CGI
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
