In the context of web development and HTTP requests, both maxQueryString and maxQueryStringLength refer to certain limitations imposed on the query string portion of a URL. They each represent different aspects of the URL and serve distinct purposes. This article explains some considerations when changing the these settings within the web.config file for use with the API.
Both of these settings are currently configured to 10,000 in the default web.config file. Changing this value could cause API issues.
Explaining maxQueryString
This refers to the maximum length allowed for the entire query string in a URL. The query string is the part of a URL that follows the question mark (?) and contains key-value pairs separated by ampersands (&). ThemaxQueryString setting specifies the maximum number of characters that can be present in the entire query string.
- For example, if
maxQueryStringis set to 2048, any URL with a query string exceeding 2048 characters would be rejected or cause an error. This setting helps prevent excessively long URLs that could potentially cause issues, such as exceeding server limits or leading to security vulnerabilities.
Explaining maxQueryStringLength
- This refers to the maximum length allowed for an individual key or value within a query string. It defines the limit for a single parameter or value in the query string.
- For instance, if
maxQueryStringLengthis set to 255, any key or value within the query string that exceeds 255 characters would be considered invalid. This setting aims to prevent excessively long parameter values that might cause problems or lead to potential vulnerabilities.
Check your settings
Confirm that these two lines exist in the web.config and that the values are set appropriately (taking into account the above explanation for each setting):
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000" maxQueryString="10000" />
</requestFiltering>
</security>
<system.web>
<httpRuntime targetFramework="4.7.2" executionTimeout="1800" maxRequestLength="512000" maxQueryStringLength="10000" requestValidationMode="2.0" enableVersionHeader="false" />
<compilation optimizeCompilations="true" targetFramework="4.7.2">
<assemblies>
Related Articles
Speed Folder Settings And Their Effects On The Local ZeroG Registry File 4Number of Views Encrypting the configuration section of web.config file in DMZ server 9Number of Views Fix API endpoint configuration issues between Snow Inventory Server and Snow License Manager 356Number of Views Compliance import logs may show spurious NullReferenceException errors related to config file settings during configuratio… 8Number of Views [Configuration] section settings in mgssetup.ini file are ignored by the agent installer on Windows 10Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago