George George

George George

  • NA
  • 778
  • 0

normalize URL

Jul 31 2008 6:13 AM

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


Answers (4)