Absolute to relative URL?
Max M
maxm at mxm.dk
Thu Apr 4 08:34:55 EST 2002
Jon Ribbens wrote:
> In article <3CAC1665.8040209 at mxm.dk>, Max M wrote:
>>>relative_url("http://foo/a/b/c", "http://foo/a/d")
>>> --> return: "../d"
>>
>>I hope you mean that the result should be "../../d" ??
>
>
> No, he means "../d".
>
> http://foo/a/b/c + d == http://foo/a/b/d
> http://foo/a/b/c + ../d == http://foo/a/d
> http://foo/a/b/c + ../../d == http://foo/d
Then what is:
http://foo/ + d == ?
regards Max M
More information about the Python-list
mailing list