【发布时间】:2010-10-15 22:27:18
【问题描述】:
我正在维护一个经典的 asp 应用程序,在查看代码时,我遇到了两行相似的代码:
Request.ServerVariables("URL")
' Output: "/path/to/file.asp"
Request.ServerVariables("SCRIPT_NAME")
' Output: "/path/to/file.asp"
我不明白...有什么区别?他们都忽略了我设置的将 /path 文件夹作为根文档的 URL 重写(上面的 URL 被重写为“/to/file.asp”)
更多信息: 该站点部署在 IIS 7 上
【问题讨论】:
标签: url asp-classic request.servervariables