tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <lmhe...@orange.fr>
Subject Re: From HTTP to HTTPS request.getHeader("referer")
Date Sun, 02 Nov 2014 17:34:02 GMT
Hi again.
It looks like "sendRedirect()" is working if I pass it a HTTPS URL as an
argument:

-----------------------------------------------------
String s_prov = 
   request.getScheme() + "://"
+ request.getServerName()
+ request.getContextPath() + "/"
+ "example1.jsp";
                    
response.sendRedirect(s_prov);
-----------------------------------------------------

Nota: in my case, "request.getScheme()" is equal to "https".

I think I'm going back to "sendRedirect()"...
Snif :'/, it's a lot of matches to replace back (from "forward()" to
"sendRedirect()")... 

Best regards.



--
View this message in context: http://tomcat.10.x6.nabble.com/From-HTTP-to-HTTPS-request-getHeader-referer-tp5024782p5024851.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message