Why
Uri.IsWellFormedUriString("http://www.foo@foo.com", UriKind.Absolute);
return true ?!
Can we use @ in a website domain?!!!
Why
Uri.IsWellFormedUriString("http://www.foo@foo.com", UriKind.Absolute);
return true ?!
Can we use @ in a website domain?!!!
Yes we can.
If you put this url in your browser, it will warn you (at least my firefox does so) that you are trying to authenticate with foo.com
as user www%2Efoo
.
The @
is used to separate user credentials from the address. This is rarely used with http, but more often with ftp: ftp://user:password@domain.com
.