Specifies limits on requests processed by the Web server.
<requestLimits maxAllowedContentLength="uint" maxUrl="uint" maxQueryString="uint" > <headerLimits>...</headerLimits> </requestLimits>
The following sections describe attributes, child elements, and parent elements for this section.
Attribute
Description
maxAllowedContentLength
Optional uint attribute.
Specifies the maximum length of content in a request, in bytes.
The default value is 30000000.
maxQueryString
Specifies the maximum length of the query string, in bytes.
The default value is 2048.
maxUrl
Specifies maximum length of the URL, in bytes.
The default value is 4096.
Element
headerlimits
Optional element.
Specifies size limits for HTML headers.
configuration
Specifies the root element in every configuration file that is used by IIS 7.
system.webServer
Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.
security
Specifies the section group that contains security-related sections.
requestFiltering
Specifies configuration settings for request filtering.
None.
Configuration locations
Machine.config
ApplicationHost.config
Root application Web.config
Application Web.config
Directory Web.config
Requirements
Microsoft Internet Information Services (IIS) version 7.0