I have a C# (.Net Core 1.1) app that needs to check if a URL is valid. I used the Uri.IsWellFormedUriString() which works pretty well but have a doubt about this one below which returns false. It seems to me that the URL is perfectly valid?
Uri.IsWellFormedUriString("http://www.test.com/search/Le+Venezuela+b%C3%A9n%C3%A9ficie+d%27importantes+ressources+naturelles+%3A+p%C3%A9trole%2C+gaz%2C+mines", UriKind.Absolute)
I used the very same URL with the PHP function below which says the URL is correctly formatted:
function filter_var($url, FILTER_VALIDATE_URL)
If I refer to the RFC3986 it seems this URL is correct. Am I missing something here?
I have a C# (.Net Core 1.1) app that needs to check if a URL is valid. I used the Uri.IsWellFormedUriString() which works pretty well but have a doubt about this one below which returns false. It seems to me that the URL is perfectly valid?
I used the very same URL with the PHP function below which says the URL is correctly formatted:
If I refer to the RFC3986 it seems this URL is correct. Am I missing something here?