kkris1983
23 Apr 2012, 5:06 AM
Hi,
I need to send text content of local file in HTTP body using Ext.Ajax.request.
Ext.Ajax.request({
url: 'test.jsp',
params: 'data to send',
method: 'POST',
headers: {
'Content-Type': 'my custom content type'
}
});
The problem is my custom Content-Type header is not set in the request properly.
What causes that behavior ? How to deal with that ?
Best regards kkris1983
I need to send text content of local file in HTTP body using Ext.Ajax.request.
Ext.Ajax.request({
url: 'test.jsp',
params: 'data to send',
method: 'POST',
headers: {
'Content-Type': 'my custom content type'
}
});
The problem is my custom Content-Type header is not set in the request properly.
What causes that behavior ? How to deal with that ?
Best regards kkris1983