Reputation: 21
xmlHttp.open( "GET", "/mcd/demo.jssp?array="+arr, false ).
And how to fetch it in jssp?
My arr lookes like arr= [3214,2345,84834,4847,83474,3244,234834,........ 30k+ values]
Upvotes: 2
Views: 50
Reputation: 68393
max-length of a URL is 2000 characters, so you can't send 30 thousand array items as a GET request
Send the request as of type post
xhttp.open("POST", "/mcd/demo.jssp", true);
xhttp.send("array="+arr);
Upvotes: 1