Good catch. I'll re-review the request methods and figure out which way we
want to go. I think there are accepted definitions of URL vs. URI, but I
don't recall them. Obviously, this is a URL:
But then is the URI a subset of that?
At 11:08 AM 11/15/00 -0500, Geoff Talvola wrote:
>I get an infinite loop when I try to access:
>but the three alternatives
>all work properly. The log output shows that it keeps appending a slash
>to the end of the path infinitely until you press Stop in the browser.
>It looks like a bug in the uri() method of HTTPRequest -- instead of
>returning the URL without the query string, it returns the _entire_ URL
>including the query string, to which handleDeficientDirectoryURL appends
>a slash over and over. I'm not sure if this is a docstring bug or a
>code bug in HTTPRequest. On the assumption that it's a docstring bug in
>the uri() function, I was able to fix it by replacing Application's
> def handleDeficientDirectoryURL(self, transaction):
> uri = string.split(transaction.request().uri(), '?')
> uri = uri + '/'
> newURL = string.join(uri, '?')
> res = transaction.response()
>but I'm not sure if this is right.
>- Geoff Talvola
> Parlance Corporation
>Webware-discuss mailing list