tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOMEZ Henri <hgo...@slib.fr>
Subject RE: How to tell if request came via HTTPS?
Date Tue, 10 Oct 2000 08:59:52 GMT
You could use also isSecure() (when apache and tomcat use mod_jk ;-)

"Dans les révolutions, il y a deux sortes de gens: ceux qui les font et ceux
qui en profitent "
-- Napoleon 

>-----Original Message-----
>From: David H Elrod [mailto:dhelrod@rivendell.com]
>Sent: Tuesday, October 10, 2000 3:04 AM
>To: tomcat-user@jakarta.apache.org
>Cc: dhelrod@gimli.rivendell.com
>Subject: Re: How to tell if request came via HTTPS? 
>
>
>
>I have tomcat talking to apache, and I let apache handle
>the SSL stuff...
>
>I use getServerPort(). If the port is 443, then I figure it
>probably came through Apache via SSL.
>
>I also try to use getHeader(), and check to see if the URL
>started with "https:". I feel less good about this, but it
>also seems to work.
>
>You might try something like this.
>
>David
>
>-------------------------------------------------------------------
>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
>

Mime
View raw message