tags:

views:

42

answers:

1

This seems strange to me but I am sure there is an explanation

If I use Uri.IsWellFormedUriString passing in "http://http://www.google.com" it returns true, I can only assume that this URI conforms to some RFC specification and is valid.

Most of my other tests indicate this method works in the manner in which I expect other than this one

Can anyone advise?

+1  A: 

I checked the BNF for a URI in RFC 3296 and it does conform.

It conforms because following the first "http://" is a registry-based naming authority followed by an absolute path. "http:" conforms to the registry-based naming authority, and "//www.google.com" conforms to the absolute path.

YWE