I have an jQuery AJAX call like so:
var ajaxStuff = $.ajax({
type : 'POST',
url : customURL,
data : {
myData : 'myData'
},
dataType : 'json',
async : false
}).responseText;
console.log(ajaxStuff);
However, in the PHP when I ask what request method I'm using:
echo ($_SERVER["REQUEST_METHOD"]);
It returns:
GET
Why can't my AJAX call be recognized as a POST?
Thanks!