Bobby Roberts wrote:
Depends on the technology/web framework. If you use WSGI, you should use something like:host_name = environ.get("HTTP_HOST", None) or environ["SERVER_NAME"] -- GerhardYeah i already tried environ("SERVER_NAME") but get a key error when i do.
You could output the whole environ to see what you get and how it is called. I'd recommend however to check that you are using a configured value and not something sent by the client if you are going to use it during filesystem lookup. Regards Tino
smime.p7s
Description: S/MIME Cryptographic Signature
-- http://mail.python.org/mailman/listinfo/python-list