【问题标题】:Are the request limits in BITS/BYTES?请求限制是否以 BITS/BYTES 为单位?
【发布时间】:2010-12-06 16:34:17
【问题描述】:

在 asp.net web.config 中有 2 个部分,我正在寻找关于它们实际代表什么(位或字节)的明确词。第一个:

<system.webServer>
   <security>
   <requestFiltering>
    <requestLimits maxAllowedContentLength="?" />
   </requestFiltering>
  </security>
</system.webServer>

第二个:

<system.web>
     <httpRuntime maxRequestLength="?" requestValidationMode="2.0" />
</system.web>

“?”显示的是我不明白的值,如果它们是在谈论位或字节。

任何建议和支持文章 :-) 都会很有帮助。

皮特

【问题讨论】:

    标签: c# asp.net iis iis-7 iis-6


    【解决方案1】:

    【讨论】:

    • 也许谷歌还没有答案页面=)
    【解决方案2】:

    maxRequestLength:最大请求大小,以千字节为单位。默认大小为 4096 KB (4 MB)。

    maxAllowedContentLength: 指定请求中内容的最大长度,以字节为单位。默认值为 30000000。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-11
      • 2010-09-20
      • 1970-01-01
      • 1970-01-01
      • 2015-07-13
      • 2021-08-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多