【发布时间】:2011-12-01 02:26:42
【问题描述】:
我在我的程序中使用 HTTP 请求通过查询字符串将数据传递到基于 Web 的状态页面。请求的格式为:
http://www.example.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN
ASP 页面解析查询字符串并更新数据库。
我的问题是:查询字符串的合理长度限制是多少?我见过提到 2000 多个字节,但这似乎与浏览器相关,这里没有涉及浏览器 - 只是我的应用程序(使用 Indy)和 IIS。
【问题讨论】:
-
谢谢@James。确实有人回答了这个问题:
Microsoft Internet Information Server (Server) The default limit is 16,384 characters (yes, Microsoft's web server accepts longer URLs than Microsoft's web browser). This is configurable.当我输入问题时,这个答案并没有作为候选人提出。
标签: http iis query-string uri