$.ajax({
type: "POST",
beforeSend: function(request) {
request.setRequestHeader("Authority", authorizationToken);
},
url: "entities",
data: "json=" + escape(JSON.stringify(createRequestObject)),
processData: false,
success: function(msg) {
$("#results").append("The result =" + StringifyPretty(msg));
}
});
$.ajax({
type: "POST",
url: "/SupportHelpText.ashx", // c# web service to get HTML data
beforeSend: function (xhr) { xhr.setRequestHeader('RequestVerificationToken', $('input[name="__RequestVerificationToken"]').val()) },
data: { 'CustomerName': 'Test Customer' },
success: function (data) {
console.log(data);
},
error: function (data) {
console.log(data);
}
})