On Wed, 2014-07-09 at 15:03 -0400, Nick Chang wrote: > Hi Oleg, > > Thanks for your answer. I did the reading on java.net.URI and RFC > 2396. In java.net.URI, the URI normalization is mentioned as > "Normalization is the process of removing unnecessary "." and ".." > segments from the path component of a hierarchical URI." In RFC 2396, > the normalization is mentioned in the section regarding the case > insensitivity of the host name. I see no reference in normalizing "/" > character. >
The purpose of URI normalization is not to remove unnecessary segments but to disambiguate what resource the request is referring to. Moreover, see section 3.3 --- 3.3. Path Component ... The path may consist of a sequence of path segments separated by a single slash "/" character. --- > Given the fact that > > 1. All the browsers (IE, Chrome, Firefox) are able to submit the URIs > without normalizing the leading "/" character. > Browsers do a lot of silly stuff. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
