2
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]

Arun P Johny
  • 384,651
  • 66
  • 527
  • 531
Prachi Raj
  • 21
  • 3

1 Answers1

1

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);
Community
  • 1
  • 1
gurvinder372
  • 66,980
  • 10
  • 72
  • 94