How to increase the max length of url?

前端 未结 3 1095
伪装坚强ぢ
伪装坚强ぢ 2021-01-12 19:20

What are the best practices that I can follow to increase the max length of the URL in IIS7/ASP.NET?

Please advise.

3条回答
  •  不思量自难忘°
    2021-01-12 19:51

    From this site: http://technet.microsoft.com/en-us/library/cc754791(v=ws.10).aspx

    Use command line : appcmd set config /section:requestfiltering/requestlimits.maxurl: unit

    Here is explained how to use appcmd: http://www.windowsnetworking.com/articles_tutorials/Configuring-IIS-7-command-line-Appcmdexe-Part1.html

    You need to know where the AppCmd.exe command is located as it is not in the default PATH. In order to run AppCmd.exe, you will either need to change directory into %windir%\system32\inetsrv\ or add that directory to your PATH variable. On my Windows 2008 server with a default installation, AppCmd.exe was located in C:\Windows\System32\inetsrv.

    But be careful. If your request url became realy realy large, use post message to pass parameters

提交回复
热议问题