我有客户端URL并通过浏览器从该URL获取响应。通过AJAX发送时,我得到一个空响应。现在我正在使用.Net应用程序。我给了我的剧本。请指导我得到适当的回复并提前致谢。
响应:
$.ajax({
type: "GET", //GET or POST or PUT or DELETE verb
url: URL,
//data: data,
dataType: "json",
contentType: "application/json; charset=utf-8", // content type sent to server
success: function (result) {
// JSON.stringify(result);
alert(JSON.stringify(result));
},
error: function () {
alert('error');
}
});
{{1}}