View Full Version : Why does the same code works in different ways?

20 Apr 2013, 1:06 PM
My code for store:

var store = Ext.create('Ext.data.Store', {
autoLoad: true,
autoSync: true,
model: 'Row',
proxy: {
type: 'rest',
url: '../php/main.php',
reader: {
type: 'json'
writer: {
type: 'json'

Localserver (Firebug):

GET http://ext/php/main.php?_dc=1366491083388&page=1&start=0&limit=25
200 OK

POST http://ext/php/main.php?_dc=1366491089629
200 OK

PUT http://ext/php/main.php?_dc=1366491105251
200 OK

Moved by hosting

Remote server (Firebug):

GET http://ext.***.org/php/main.php?_dc=1366490659684&page=1&start=0&limit=25
200 OK

POST http://ext.***.org/php/main.php?_dc=1366490663867
200 OK

PUT http://ext.***.org/php/main.php?_dc=1366490680653
403 Forbidden

"NetworkError: 403 Forbidden - http://ext.***.org/php/main.php?_dc=1366490680653"

Why PUT method Why throws an error on the server?

22 Apr 2013, 10:43 AM
I'm sorry. I'm afraid I won't be able to help. The ExtJS framework won't change behavior depending on the server environment you're running.

The ExtJS forum may or may not be your best resource for server script troubleshooting.

Best of luck!