Relatively: (jQuery ajax method):
Is the contentType property taken into account when the request itself is a GET request? (Example)
$.ajax({ type: "GET", url: "/webservices/xxx.asmx/yyy", data: JSON.stringify({ Markers: markers }), contentType: "application/json; charset=utf-8", dataType: "json",....... });
ps
contentType is a form of data that I send to the server
dataType is a form of data that I EXPECT to receive from the server.
source share