-
How to add header in Ext.Ajax.request?
How to add header in Ext.Ajax.request?
Hi,
How to add header in Ext.Ajax.request?
My Code:
Ext.Ajax.request({
url : 'https://abc/login.form' ,
params : {
'login-form-type' : 'pwd',
'SUBMIT' : 'Logon',
'username' : 'abc',
'password' : 'xyz'
},
headers: {
'User-Agent' : 'Mozilla/5.0',
'Content-Type' : 'application/x-www-form-urlencoded'
},
method: 'POST',
success: function (result, request) {
},
failure: function ( result, request) {
}
});
thanks
dpk
Similar Threads
-
By rjuncu in forum Ext 3.x: Help & Discussion
Replies: 5
Last Post: 11 Aug 2010, 7:58 AM
-
By dotnetCarpenter in forum Community Discussion
Replies: 11
Last Post: 4 Oct 2007, 12:01 PM
-
By seldon in forum Ext 1.x: Bugs
Replies: 4
Last Post: 27 Jun 2007, 2:31 AM
-
By mindows in forum Ext 1.x: Help & Discussion
Replies: 2
Last Post: 13 Mar 2007, 2:37 PM
Tags for this Thread
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us