Request的高级使用 asp.net c#

把localhost换成IP或域名
1407为端口号

给你一个例子:
测试的url地址是, 结果如下:

Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.PathInfo:
Request.PhysicalApplicationPath: E:WWW estweb
Request.PhysicalPath: E:WWW estwebdefault.aspx
Request.RawUrl: /testweb/default.aspx
Request.Url.AbsolutePath: /testweb/default.aspx
Request.Url.AbsoluteUri:
Request.Url.Host:
Request.Url.LocalPath: /testweb/default.aspx
原文地址:https://www.cnblogs.com/fulai/p/3332540.html