gpt4 book ai didi

asp.net - 限制 Request.Form 中的字段数量(Request.Form 集合限制为 1000 个条目)

转载 作者:行者123 更新时间:2023-12-02 17:21:21 25 4
gpt4 key购买 nike

有没有办法通过 IIS 或 ASP.Net 限制可以通过 Request.Form 集合访问的值的数量?

例如,如果我将页面 A 发布到页面 B,并且页面 A 包含 50000 个表单字段,那么无论如何都要配置页面 B,使其最多只能访问 1000 个请求字段。

我问这个问题是因为我怀疑我正在处理的网站上的某些页面仅配置为接受 Request.Form 集合中最多 1000 个项目。

最佳答案

我相信我所描述的行为是由 Security Update MS11-100 引起的

Microsoft security update MS11-100 limits the maximum number of form keys, files, and JSON members to 1000 in an HTTP request.

可以在这里找到解决方案(我已成功应用于我正在开发的 1.1 .net 网站) - http://support.microsoft.com/kb/2661403

关于asp.net - 限制 Request.Form 中的字段数量(Request.Form 集合限制为 1000 个条目),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8898172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com