Hi,

I am trying to POST something to my server using qx.io.remote.Request.
It might happen that the server returns 403 Forbidden if the user is not
allowed to do that operation.

If it fails with 403, the following happens: The completed event is
fired and the alert(e.getStatusCode()) gives me 200 which is completely
wrong. This only happens with POST, with GET it works as expected and
the "failed" event is fired.

Any idea?

Thanks

Jörg

PS: Here's the code:

                  var r = new
qx.io.remote.Request("/fs/mkdir.json/"+path, "POST", "application/json")
                  r.setFormField("name", name);
                  r.addListener("completed", function(e) {
                        alert(e.getStatusCode());
                        var sel = this.ftree.getSelection();
                        if(sel && sel.length)
                           this.reloadItem(sel[0]);
                     }, this);



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to