1

Can anybody tell How to add header as parameter in ajax call rest web service request in sencha touch

Thanks

user386430
  • 4,837
  • 13
  • 41
  • 45

1 Answers1

0

Here is how you can add header in the sencha touch AJAX call,

Ext.Ajax.request({
   url: 'myUrl',

   headers: {
      "Content-Type": "application/json"
   },

   callback: function(options, success, response) {
      console.log(response.responseText);
   }
});
Sagar Khatri
  • 1,004
  • 8
  • 23