Re: urlparse http://site.com/../../../page.html

2008-04-08 Thread monk.e.boy
> http://4suite.org/ Thanks for the info, for the curious I found some docs on how to use it (pretty simple): http://4suite.org/docs/CoreManual.xml and the code is in the CVS under "4Suite/Ft/Lib/Uri.py" The license is similar to the Apache license, so it is pretty liberal :-) I'd like to see

Re: urlparse http://site.com/../../../page.html

2008-04-08 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "monk.e.boy" <[EMAIL PROTECTED]> wrote: > I figured it out and blogged the answer: > > http://teethgrinder.co.uk/blog/Normalize-URL-path-python/ Thanks for letting us know of a solution. You might also be interested in Fourthought's URI library which contains

Re: urlparse http://site.com/../../../page.html

2008-04-08 Thread monk.e.boy
I figured it out and blogged the answer: http://teethgrinder.co.uk/blog/Normalize-URL-path-python/ monk.e.boy -- http://mail.python.org/mailman/listinfo/python-list

urlparse http://site.com/../../../page.html

2008-04-08 Thread monk.e.boy
Hi, Can anyone help me with the urlparse: >>> import urlparse >>> urlparse.urljoin( 'http://site.com/path/', '../../../../path/' ) 'http://site.com/../../../path/' >>> urlparse.urljoin( 'http://site.com/', '../../../../path/' ) 'http://site.com/../../../../path/' >>> urlparse.urljoin( 'http://s