You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David H Elrod <dh...@rivendell.com> on 2000/06/01 05:59:46 UTC
isSecure() not implemented?
It looks like:
HttpServletRequest.isSecure()
HttpServletRequest.getScheme()
HttpServletRequest.getProtocol()
are not really implemented yet.
However, I found that
HttpServletRequest.getServerPort()
returns "443" for an SSL connection and it
returns "80" for a non-SSL connection.
Assuming that I have apache configured to listen to 443 for HTTPS
connections and 80 for HTTP connections...
Is there any reason why I shouldn't use the port number instead
of HttpServletRequest.isSecure() to determine whether this is a
secure connection to my servlet or not?
Thanks!
Hunter
-------------------------------------------------------------------
David Hunter Elrod Rivendell Technologies, Inc
dhelrod@rivendell.com 1111 W. El Camino #109, PMB348
http://www.rivendell.com Sunnyvale, CA 94087-0126
Voice: 650/254-1790 Fax: 650/254-1792