How to set URL length and HTTP POST content length limits in IIS - WKB240363
Article number: 240363
OBJECTIVE or GOAL
Set limits within Microsoft IIS for the URL length, query string, and HTTP POST content length.
ENVIRONMENT
- IIS 7/8 in Windows Server 2012/2016/2019
PROCEDURE
- Open IIS Manager
- Connect to the local server
- Expand the Sites tree and select Default Web Site
- Double-click Request Filtering
- Click Edit Feature Settings....
- Set "Maximum allowed content length (Bytes)" to the desired value
- The default value, 30000000, is approximately 30 MB. One sugested new value is 3000000, or approximately 3 MB
- NOTE: setting this value will restrict the maximum size of file attachments to annotations in SDMS when posting the file through SDMS WebVision
- Set the "Maximum URL length (bytes)" and "Maximum query string (Bytes)" to the desired values. They default to 4096 and 2048, respectively. A suggestion is to decrease the settings by half, to 2048 and 1024
- Repeat steps 4 through 7 for any other website in IIS
- Restart IIS
ADDITIONAL INFORMATION
id240363, SDMS, SDMS8, SDMS8NU, SUPISDMS, SUPNG