tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOMEZ Henri <>
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 []
>Sent: Tuesday, October 10, 2000 3:04 AM
>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 Hunter Elrod                   Rivendell Technologies, Inc
>                1111 W. El Camino #109, PMB348
>             Sunnyvale, CA 94087-0126
>Voice: 650/254-1790                  Fax: 650/254-1792

View raw message