Sending a large parameterized dataset as a GET request

What is the best way to send a large dataset using a GET request.

  • I cannot use POST due to some design limitations.
  • I can use jQuery or any other library, preferably sizzle.
  • I have a complex data set that has attachments inside it, and json is good for counting.

Thank you for your help.

+3
source share
1 answer

GET requests should not exceed 1-4 kilobytes in size due to browser and server restrictions. You will need to split your request into pieces in order to do this.

If the data comes from a form, you can, for example, use the jQuery .serialize() function to put the data on one line. Then split the string into kilobyte chunks and send it using Ajax. You should have a server side script that glues the pieces back together, possibly using the unique identifier specified in Ajax requests.

Some sources of length restrictions:

+7
source

All Articles