[mod_python] Detecting http vs. https

Nick nick at dd.revealed.net
Thu Sep 16 18:59:07 EDT 2004


The HTTPS variable will be set in the environment.

Nick

Adrian Holovaty wrote:
> Hey everybody,
> 
> What's the easiest and most reliable way for me to detect if a request has 
> come in via https vs. http?
> 
> It'd be best if I didn't have to parse any of the request attributes manually.
> 
> Thanks,
> Adrian
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list