This content has been marked as final. Show 1 reply
Here's a description and a worked example of using the low level XmlHttpRequest Object to issue a POST request:
In which case, you'd want to specify the application/json content type and send your data in JSON form as a parameter of the send call.
xmlhttp.open("POST","ajax_test.asp",true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("fname=Henry&lname=Ford");
Here's the documentation for the JQuery.post function: