Forgive me if this is a stupid quesiton but I fell upon an ajax call of type GET that for some reason passed some data along with it. And I thought to myself, who passes data along with a GET request?
$.ajax({
url: "https://example/api/jobFinished/",
dataType: "JSONP",
type: "GET",
jsonpCallback: "callback",
data: {
id: '1852',
scid: '1952',
cid: '120125'
},
How is data transferred in an ajax GET request?
secondary question: Why would anyone choose to transfer data with an ajax GET request as opposed to an ajax requets of type POST?