I have to do a POST from my ExtJs script in order to delete something from my DB:
Ext.Ajax.request({ url: \'deleteRole.html\', method: \'POST\',
The problem is that you are using the line headers: {'Content-Type': 'text/html'}, in your original question. This would set the content to text/html instead of the content being post data.
headers: {'Content-Type': 'text/html'},