string sURL = ""; sURL += "Host: " + HttpContext.Current.Request.Url.Host + Environment.NewLine; sURL += "Host: " + HttpContext.Current.Request.Url.Authority + Environment.NewLine; sURL += "Path: " + HttpContext.Current.Request.Url.AbsolutePath + Environment.NewLine; sURL += "Application Path: " + HttpContext.Current.Request.ApplicationPath + Environment.NewLine; sURL += "URL: " + HttpContext.Current.Request.Url.AbsoluteUri + Environment.NewLine; sURL += "Path With Query: " + HttpContext.Current.Request.Url.PathAndQuery + Environment.NewLine;
Host: test.domain.org
Host: test.domain.org
Path: /templates/pbcontent.aspx
Application Path: /
URL: https://test.domain.org/templates/pbcontent.aspx?pageid=2147483707&id=86186
Path With Query: /templates/pbcontent.aspx?pageid=2147483707&id=86186
Last Updated on October 26, 2015