If I have URL A say http://www.example.com/ and another, say http://www.example.com. What would be the safest way to determine if both is the same, without querying for the web page and do a diff?
EXAMPLES:
http://www.example.com/VShttp://www.example.com(Mentioned above)http://www.example.com/aa/../VShttp://www.example.com
EDIT:
Clarifications: Just want to know if the URLs are the same in the context of being equivalent according to the RFC 1738 standard.
In .Net, you can use the System.Uri class.
For more fine-grained comparison, you can use the Uri.Compare method. There are also static methods to deal with various forms of escaping and encoding of characters in the Uri string, which will no doubt prove useful when dealing with the subject thoroughly.