Increasing QueryString max length

13,794

It is not possible to change the query string length of the browser.

The limitation are in the following question on SO
What is the maximum possible length of a query string?

Share:
13,794
sd_dracula
Author by

sd_dracula

Updated on June 04, 2022

Comments

  • sd_dracula
    sd_dracula almost 2 years

    I have a queryString which is around 2500 characters long, over the default 2048 limit.

    Now I've changed the settings in web.config as suggested:

    <httpRuntime targetFramework="4.5" maxQueryStringLength="204800" maxUrlLength="409600"/>
    

    Still comes back with error that the string is too long.

    I've also changed those settings in IIS6 -> Request Filetering -> Query Strings -> Edit Feature Settings to the same values and still no joy.

    The browser is IE11.

    Can the maxQueryStringLength actually be changed?

    Unfortunately I cannot limit the amount of text in the query string so that is not an option.