is it acceptable to do a case-insensitive comparison of each of the path components of a url (and assume port 80 when the port is not specified) when comparing two url's?
for the http protocol, this method would make it conditionally compliant (as defined in rfc2119) with section 3.2.3 of rfc2616 (http 1.1 standard). no, i did not know that offhand. yes, i have rfc2616 right in front of me. and no, the fact that i have it has nothing to do with this assignment.
also, java.net.URL does not seem to decode the %XX character sequences in a url. for example, it does not change:
http://www.test.com/space%20here
to:
http://www.test.com/space here
i might be mistaken, but it certainly doesn't do it when i do:
System.out.println(new URL("http://a.com/test%20test"));
should we decode these ourselves?
jason