Absolute to relative URL?
Max M
maxm at mxm.dk
Thu Apr 4 12:47:36 EST 2002
Jon Ribbens wrote:
> In article <3CAC567F.6090407 at mxm.dk>, Max M wrote:
>
>>>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 == ?
>
>
> http://foo/d of course. I don't see your point.
> See RFC 2396 for the rules on relative URL resolution.
Oh bugger ... I assumed that all path elements in this example where
directories. Hence the difference. It's the old windows habbit kicking in.
If it doesn't end in ".htm" it *must* be a directory ... So much for
abstract thinking :-s
Then my code doesn't work as is.
regards Max M
More information about the Python-list
mailing list