加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 如何增加url的最大长度?

发布时间:2020-12-16 03:53:53 所属栏目:asp.Net 来源: http://technet.microsoft.com/
导读:为了增加IIS7 / ASP.NET中URL的最大长度,我可以遵循哪些最佳实践? 请指教. 解决方法 从这个网站: http://technet.microsoft.com/en-us/library/cc754791(v=ws.10).aspx Use command line : appcmd set config /section:requestfiltering/requestlimits.max
为了增加IIS7 / ASP.NET中URL的最大长度,我可以遵循哪些最佳实践?

请指教.

解决方法

从这个网站: http://technet.microsoft.com/en-us/library/cc754791(v=ws.10).aspx

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

这里解释了如何使用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%system32inetsrv or add that
directory to your PATH variable. On my Windows 2008 server with a
default installation,AppCmd.exe was located in
C:WindowsSystem32inetsrv.

不过要小心.如果您的请求网址真的很大,请使用post message传递参数

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读