Search code examples
c#urlrequesthost

Does Request.Url.Host include the subdomain?


e.g. for mail.google.com would it return google.com or mail.google.com? I can't actually test it myself


Solution

  • It does include subdomain (e.g. mail.google.com)