Is there a fast way to get the scheme, host, port (only if not 80) and application path in ASP.NET?
As far as I know, I need to assemble the following pieces:
- Request.Url.Scheme
- Request.Url.SchemeDelimiter
- Request.Url.Authority (although that will probably always include the port even when it's 80)
- Request.ApplicationPath
Isn't there a simple property for that?