$.ajax({ type: "GET", url: "http://shoperola.com/Restaurant/foodysrest/sample", crossDomain: true, cache: false, dataType: "json", Complete: function(xhr) {xhr.getResponseHeader("Accept", "json")}, success: function (data, textStatus, xhr) { console.log(data); console.log(xhr.getResponseHeader("Content-Length")); }, error: function (xhr, textStatus, errorThrown) { console.log(errorThrown+"---"+textStatus); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)