At 03:15 PM 9/13/01 -0400, Jeff Johnson wrote:
>In Request.py:
>
>         def isSecure(self):
>                 ''' Returns true if request was made using a secure
>channel, such as HTTPS. This currently always returns false, since
>secure channels are not yet supported. '''
>                 return 0
>
>
>Is this still true?  I thought I was using HTTPS with no problems but
>the SERVER_PROTOCOL still says "HTTP/1.1".  The following code was going
>to be my hack to detect SSL but it won't work until SERVER_PROTOCOL
>shows HTTPS.  What's really going on?  Why does it say HTTP/1.1 when I
>use https://...?
>
>
>
>         def isSecure(self):
>                 return
>self.serverDictionary().get('SERVER_PROTOCOL','')[0:5].upper() ==
>'HTTPS'

There are other indications that you're using HTTPS:

- check that SERVER_PORT = 443 (or whatever your secure port is)
- check that SSL_SERVER_CERT is set

But you're right, SERVER_PROTOCOL doesn't show a difference.

I'm not sure how portable these two tests would be; they work with Apache 
though.


--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to