http - URL 中的 URL 编码尖括号?

标签 http url encoding iis-6

我正在开发一个遗留应用程序,无论出于何种原因,它都试图将 URL 编码的尖括号填充到 URL 中。例如,要获取以“”结尾的 URL:

http://somesite.com/somefolder/%3csometext%3e

当提取上述 URL 编码的 URL 时,它会在 IIS6 上生成 400 错误(错误请求),我不太明白为什么。可能很简单,但我很难过。

想法?谢谢。

最佳答案

您必须安装 URLScan 工具 ( http://technet.microsoft.com/en-us/security/cc242650.aspx ),它不允许尖括号(以任何形式)。

根据 this ,

    The new default urlscan.ini contains a rule in it to protect against these sort of patterns and the rule is just simply:

[DenyQueryStringSequences]

<

>

关于http - URL 中的 URL 编码尖括号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/217447/

相关文章:

c++ - 使用 OpenCV 以 JPG 格式编码图像以避免重影效果

python - 正确格式化多部分/表单数据主体

.htaccess - SEO 友好的 URL 错误,请帮帮我?

php - GET 中的 GET

javascript - jQuery 使用变量组合 URL

C# Web Api action方法自动解码查询参数

c# - 为什么在监听强通配符(http ://+:port) http. sys/urlacl 绑定(bind)时 HttpListener "conflict with an existing registration"?

c++ - 使用套接字编程的奇怪 HTTP 响应

c++ - 使用 C++ 的简单 HTTP 请求

java - 最新的 Base 64 和 url 编码库