If your query string exceeds maxQueryStringLength
ASP.NET will return a 400 (Bad Request)
status.
This setting defaults to 2048, you can increase it, however, browsers also restrict the query string / url length, for example IE9 allows a maximum of 2083 characters.
If you can change the code, instead of using $.getJSON
with a long query string I would send the data via a POST
request using $.post
with the dataType: json
:
$.post(yourUrl, yourData, function (data) {
// data has the same value as if you used $.getJSON
}, 'json');