Reputation: 6883
I'm using this code block:
if (!Uri.TryCreate("http://www-.ageofautism.com/2010/01/wakefields-science-proven-valid-again-in-new-study-that-replicates-findings.html", UriKind.Absolute, out url) || url.Host == string.Empty)
throw new InvalidUrlException(inputUrl);
And the function Uri.TryCreate returns true, instead of false. However that URL is broken because: "www-" is not valid prefix.
Can someone explain this?
Upvotes: 0
Views: 53
Reputation: 9782
www-.ageofautism.com
is as valid as my-super-server.ageofautism.com
If this adress exists is a different question.
Upvotes: 3