Skip to main content
Waters

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

  1. Open IIS Manager
  2. Connect to the local server
  3. Expand the Sites tree and select Default Web Site
  4. Double-click Request Filtering
  5. Click Edit Feature Settings....
  6. Set "Maximum allowed content length (Bytes)" to the desired value
    1. The default value, 30000000, is approximately 30 MB.  One sugested new value is 3000000, or approximately 3 MB
    2. NOTE: setting this value will restrict the maximum size of file attachments to annotations in SDMS when posting the file through SDMS WebVision
  7. 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
  8. Repeat steps 4 through 7 for any other website in IIS
  9. Restart IIS

ADDITIONAL INFORMATION

 

id240363, SDMS, SDMS8, SDMS8NU, SUPISDMS, SUPNG

Not able to find a solution? Click here to request help.