从Request.ServerVariables(“ HTTP_X_ORIGINAL_URL”)中删除正斜杠

问题描述 投票:0回答:1

我在使用以下ASP Server变量时遇到问题:

Request.ServerVariables("HTTP_X_ORIGINAL_URL")

它正在删除多个正斜杠的实例,因此下面的URI:

/here/is//my/uri////as/an/example

被解释为:

/here/is/my/uri/as/an/example

这是IIS 8.5上的相当标准的网站设置。

还有其他人遇到类似的问题吗?

asp-classic iis-8 request.servervariables
1个回答
0
投票

根据Lex Li的建议,在将请求发送到服务器之前,浏览器会删除重复的斜杠。

© www.soinside.com 2019 - 2024. All rights reserved.