I am using ExtJS to send an Ajax request to a PHP page on a server, wanting to send the parameters as POST variables rather than in the querystring.
I have included a random token in the querystring since we were having caching issues on one of our proxy servers.
Ext.Ajax.request({
url: 'ajax.php?action=test&randToken=' + generateRandomToken(),
scope: this,
method: 'POST',
success: ajaxSuccess,
failure: ajaxFailure,
params:
{
param1: 'test',
param2: 'data',
}});
The code above works when I run it locally (on a Vista box), and checking the traffic using Fiddler everything appears fine.
When running on our Ubuntu staging server (running Zend server) however, all the ajax requests put the POST data into the querystring as well.
I do not even know where to begin looking for what is causing this. Is it a proxy or something on the network, or maybe a setting on the staging server?