Hello,

I am kinda new to qooxdoo and stuff.

What I was trying to figure out is how do I POST my json to my server.

Look this is the code I wrote:

                                var req = new
qx.io.remote.Request('http://virt2/login','POST','application/json');
                                
req.setRequestHeader("content-type","application/json");        
                                req.setFormField('name', userName.getValue());
                                req.setFormField('password', 
userPassword.getValue()); 
                                req.send();

I whant server to recive Json? but instead I get this:

                        Array
(
    [_data_] => nocache=1352875203070
    [name] => admin
    [password] => admin
)
123

As if it is a POST request.

What do i did wrong?



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/I-am-confused-with-Json-requests-tp7581959.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to