查询字符串的一个AJAX的GET请求最大长度是多少? [英] Max length of query string in an AJAX GET request?

查看:630
本文介绍了查询字符串的一个AJAX的GET请求最大长度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有/什么是查询字符串的最大长度做一个AJAX GET请求时?更具体地说,我使用的图像进行跨域AJAX:

Is there/what is the maximum length of the query string when doing an AJAX GET request? More specifically, I am doing cross-domain AJAX using an image:

img = new Image();
img.src = "http://www.otherdomain.com/something.gif?long_query_string=long........";

什么是这里的查询字符串的限制?

What is the limit on the query string here?

推荐答案

有任何规范没有定义的限制。在有效或prescribed限制为2048个字符。某些浏览器和Web服务器将有问题的时间。

There is no defined limit in any specification. The effective or prescribed limit is 2048 characters. Certain browsers and Webserver will have problems with longer.

这篇关于查询字符串的一个AJAX的GET请求最大长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆