Max length of query string in an AJAX GET request?

ajax, javascript

Solution

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.

Problem

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?

Original source