Hi,
I see a different behaviour between org.apache.commons.httpclient.URI
and java.net.URI normalization.
Jython transcript:
>>> uri1 =
org.apache.commons.httpclient.URI("http://www.domain.org//a//b//c//")
>>> uri1.normalize()
>>> uri1
http://www.domain.org//a//b//c//
>>> uri2 = java.net.URI("http://www.domain.org//a//b//c//")
>>> uri2.normalize()
http://www.domain.org/a/b/c/
What is the correct way to handle URI's path with multiple slashes? I
need to remove it myself? The problem arises when you want to compare
two different URIs and there is a need for some canonical representation.
Thanks,
Seb
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]