asp.net 获取URL 的全部结果信息

Description:

http://localhost:4336/Web/AjaxDemo.aspx,最后输出的结果:

Request.AppRelativeCurrentExecutionFilePath=~/AjaxDemo.aspx
Request.CurrentExecutionFilePath=/Web/AjaxDemo.aspx
Request.FilePath=/Web/AjaxDemo.aspx
Request.Path=/Web/AjaxDemo.aspx
Request.PathInfo=
Request.PhysicalApplicationPath=D:\SXJST\Web\
Request.PhysicalPath=D:\SXJST\Web\AjaxDemo.aspx
Request.RawUrl=/Web/AjaxDemo.aspx
Request.Url=http://localhost:4336/Web/AjaxDemo.aspx
Request.UrlReferrer=
Request.UserHostAddress=127.0.0.1
Request.UserHostName=127.0.0.1
uri.AbsolutePath=/Web/AjaxDemo.aspx
uri.AbsoluteUri=http://localhost:4336/Web/AjaxDemo.aspx
uri.Authority=localhost:4336
uri.Host=localhost
uri.HostNameType=Dns
uri.Scheme=http
uri.LocalPath=/Web/AjaxDemo.aspx
uri.OriginalString=http://localhost:4336/Web/AjaxDemo.aspx
uri.PathAndQuery=/Web/AjaxDemo.aspx
uri.Port=4336
uri.Segments=/,Web/,AjaxDemo.aspx

你可能感兴趣的:(asp.net)