HttpContext.Current.Request.RawUrl是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/06/24 06:41:36
说明文档上说:它获得当前请求的原始URL,什么是原始URL?

请高手详细说明。

测试的url地址是http://www.test.com/testweb/default.aspx?id=1, 结果如下:
Request.RawUrl: /testweb/default.aspx?id=1

原始 URL 定义为 URL 中域信息之后的部分。在 URL 字符串 http://www.contoso.com/articles/recent.aspx 中,原始 URL 为/articles/recent.aspx。原始 URL 包括查询字符串(如果存在)。