开发者

What is the maximum length for a querystring?

开发者 https://www.devze.com 2023-04-10 23:40 出处:网络
I\'m using HTTP requests in my program to pass data via a querystringto a web-based status page.The requests are of the form:

I'm using HTTP requests in my program to pass data via a querystring to a web-based status page. The requests are of the form:

http://www.example.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN

The ASP page parses the querystring and 开发者_如何学JAVAupdates a database.

My question is: what is the sensible length limit of the querystring? I've seen mention of 2000-odd bytes but that seems to be browser-related and there is no browser involved here - just my app (using Indy) and IIS.


Browser dependent, for more this might help


With the limitation on characters, what i usually do is minimize the querystring values from your example: &widgetscompleted= could be abreviated to &wc=.

I am certain if you minimize these, the length shouldn't be an issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号