URL: http://www.sample.com/app/folder/default.aspx?id=2&cat=67
Request.ApplicationPath returns:
/app
Request.Url.AbsolutePath:
/app/folder/default.aspx
Request.Url.PathAndQuery:
/app/folder/default.aspx?id=2&cat=67
Request.Url.LocalPath:
/app/folder/default.aspx
Request.Url.Query:
?id=2&cat=67
Request.Url.OriginalString
http://www.sample.com:80/app/folder/default.aspx?id=2&cat=67
Request.Uri.MakeRelativeUri Method determines the differeneces between two Uri instances and returns relative path:
http://www.sample.com/
http://www.sample.com/app/folder/default.aspx?id=2&cat=67
the relative difference is:
app/folder/default.aspx?id=2&cat=67
Request.Url.DnsSafeHost /Host
www.sample.com
Request.UserHostAddress
192.168.67.5
Request.UserHostName gets the DNS name
sample.com
Request.RawUrl:
/app/folder/default.aspx?id=2&cat=67
Request.Url.Segments:
/
app/
folder/
default.aspx
Request.PhysicalApplicationPath:
E:\folder\appfolder\
Request.PhysicalPath:
E:\folder\appfolder\folder\default.aspx
Request.Path:
/app/folder/default.aspx
Request.QueryString:
id=2&cat=67
Request.MapPath(".")
E:\folder\appfolder\folder\
Request.FilePath:
/app/folder/default.aspx
Server.MachineName:
COMPUTERNAME