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?
Neil Schemenauer
2002-09-12
On Wed, Sep 11, 2002 at 11:53:28PM -0700, Titus Brown wrote:
> Unfortunately, it appears that the environment variable SCRIPT_NAME is
> munged by http_request.py...

Only if you are using IIS.  publish.py used to munge SCRIPT_NAME and
PATH_INFO but doesn't any longer (in CVS but not released).

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

You could have a global variable holding it.  Then you only need to
change it in one place.

  Neil


reply