How can I get the URL the user typed (except the part after '?') with the cgi module? I expect the 'Host:' HTTP header + os.environ['SCRIPT_NAME'] would do it, but I don't see how to find the Host header. The www server has several names, so I can't just use the default host name. -- Hallvard