Hello everyone,
Some URL representations, like "www.google.com" is not legal and will cause format exception when we use it to form URI class. In this specific case, it is because http:// is missing.
My questions are,
- Is what URI class doing conforming to industry standard about what is legal form of URL? Or URI class is doing something special to decide whether or not format exception will be thrown?
- Suppose we have URL strings like "www.google.com", how to make such strings "good format" to URI class? Any utilities' class to transform?
thanks in advance,
George

Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 31, 2008, 4:40 AM EDT
George GeorgeRank #1,736 · 870 reputationPosted Jul 31, 2008, 9:36 PM EDT
Thanks Ryan!
The document is big, I want to confirm with you that the URL sanity checking rules is accordance to RFC 2396 and RFC 3986?
regards,
George
Ryan AlfordRank #1,411 · 1.2K reputationPosted Aug 1, 2008, 4:41 AM EDT
George GeorgeRank #1,736 · 870 reputationPosted Aug 2, 2008, 1:50 AM EDT
Thanks Ryan!
Are there any tools or built-in APIs which will convert an URL string into elegant format of Uri (i.e. conforming to the RFCs)?
regards,
George