durusmail: quixote-users: Help: how do I get the base URL?
Help: how do I get the base URL?
2002-09-12
2002-09-12
Help: how do I get the base URL?
Titus Brown
2002-09-12
Hi,

I have a footer function that provides a cute little toolbar for people
to do stuff like log out, go to their preferences page, etc.  I'd like
to avoid hardcoding the base URL for the site there, because the site
is either served from /canal (under PyWX) or from /something/else/canal.cgi/
(under Apache).  Unfortunately, it appears that the environment variable
SCRIPT_NAME is munged by http_request.py...

So, how can I get the base URL of the package?

thanks,
--titus


reply