requestLimits maxAllowedContentLength 是指请求发送还是接收请求?
Does requestLimits maxAllowedContentLength refers to request sending or receiving the request?
在客户端(客户端应用程序)的 web.config 中,我有:
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" maxQueryString="30000" maxUrl="40000" />
</requestFiltering>
在服务器端我有:
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
- 客户端requestLimits是指发送请求还是接收请求?
- 服务端requestLimits是指发送请求还是接收请求?
maxAllowedContentLength
属性指定此 Web 应用程序的 请求 可以拥有的最大字节数。
因此,如果在您所谓的 客户端应用程序中使用 ,它仍然适用于向该客户端应用程序发出的请求。当在服务器应用程序中使用时,它适用于向该服务器应用程序发出的请求。因此,在何种类型的 Web 应用程序中使用它并不重要:所有 Web 应用程序都有 HTTP 请求,并且此属性控制特定应用程序的此请求主体的最大允许大小。
在客户端(客户端应用程序)的 web.config 中,我有:
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" maxQueryString="30000" maxUrl="40000" />
</requestFiltering>
在服务器端我有:
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
- 客户端requestLimits是指发送请求还是接收请求?
- 服务端requestLimits是指发送请求还是接收请求?
maxAllowedContentLength
属性指定此 Web 应用程序的 请求 可以拥有的最大字节数。
因此,如果在您所谓的 客户端应用程序中使用 ,它仍然适用于向该客户端应用程序发出的请求。当在服务器应用程序中使用时,它适用于向该服务器应用程序发出的请求。因此,在何种类型的 Web 应用程序中使用它并不重要:所有 Web 应用程序都有 HTTP 请求,并且此属性控制特定应用程序的此请求主体的最大允许大小。