JQuery, send JSON object using GET method

GET requests (at least usually) do not have a message body. As mentioned in the docs, jQuery appends data of GET requests to the url parameters. You should be able to read your sort parameter from there with your server application.

BTW, no user agent will allow you to set the Content-Length header – it will (and must) be done automatically depending on the sent data.

Leave a Comment