.NET获取URL的各种方式及其区别

2021-06-24 04:05

阅读:514

标签:.com   app   blog   net   来源   execution   style   font   tor   

原文发布时间为:2009-11-11 —— 来源于本人的百度文章 [由搬家工具导入]

http://www.test.com/testweb/default.aspx?id=1

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?id=1

Request.Url.AbsolutePath: /testweb/default.aspx

Request.Url.AbsoluteUri: http://www.test.com/testweb/default.aspx?id=1

Request.Url.Host: www.test.com

Request.Url.LocalPath: /testweb/default.aspx

技术分享             Response.Write("Request.ApplicationPath: " + Request.ApplicationPath + "
");

技术分享             Response.Write("Request.CurrentExecutionFilePath: " + Request.CurrentExecutionFilePath + "
");

技术分享             Response.Write("Request.FilePath: " + Request.FilePath + "
");

技术分享             Response.Write("Request.Path: " + Request.Path + "
");

技术分享             Response.Write("Request.PathInfo: " + Request.PathInfo + "
");

技术分享             Response.Write("Request.PhysicalApplicationPath: " + Request.PhysicalApplicationPath + "
");

技术分享             Response.Write("Request.PhysicalPath: " + Request.PhysicalPath + "
");

技术分享             Response.Write("Request.RawUrl: " + Request.RawUrl + "
");

技术分享             Response.Write("Request.Url.AbsolutePath: " + Request.Url.AbsolutePath + "
");

技术分享             Response.Write("Request.Url.AbsoluteUri: " + Request.Url.AbsoluteUri + "
");

技术分享             Response.Write("Request.Url.Host: " + Request.Url.Host + "
");

技术分享             Response.Write("Request.Url.LocalPath: " + Request.Url.LocalPath + "
");

技术分享

.NET获取URL的各种方式及其区别

标签:.com   app   blog   net   来源   execution   style   font   tor   

原文地址:http://www.cnblogs.com/handboy/p/7158350.html


评论


亲,登录后才可以留言!