1、request获取url各种信息的方法
测试的url地址:http://www.test123.com/testweb/default.aspx, 结果如下:
request.applicationpath: /testweb
request.currentexecutionfilepath: /testweb/default.aspx
request.filepath: /testweb/default.aspx
request.path: /testweb/default.aspx
request.pathinfo:
request.physicalapplicationpath: e:\www\testweb\
request.physicalpath: e:\www\testweb\default.aspx
request.rawurl: /testweb/default.aspx
request.url.absolutepath: /testweb/default.aspx
request.url.absoluteuri:
request.url.host: www.test.com
request.url.localpath: /testweb/default.aspx
posted on 2012-12-23 17:33
sanmao 阅读(631)
评论(0) 编辑 收藏