Hola Ricardo,

It is a bad request because you have: "&&" instead of "&"


Ricardo Borillo-2 wrote:
> 
> Hi all,
> 
> In this example:
> 
> var params = { a:'test', b:'test&', c:'other' };
> 
> var req = new qx.io.remote.RemoteRequest("http://xxx/xx";, "POST",
> qx.constant.Mime.XML);
> req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
> 
> for (var i in params)
> {
>       req.setParameter(i, params[i]);
> }
> 
> req.addEventListener("completed", function(e) {
>    // Some code
> }, this);
> 
> req.send();
> 
> 
> When the request is issued, it generates some URL like this:
> http://xxx/xx?nocache=1158563123763&a=test&b=test&&c=other
> 
> This request generates an HTTP Error 400: Bad Request.
> It's necessary to encode all parameters before the request?
> 
> Thanks a lot
> 
> -- 
> Salut,
> ====================================
> Ricardo Borillo Domenech
> Analista/Programador - Servei d'Informàtica
> Universitat Jaume I
> http://xml-utils.com
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RemoteRequest-problem-tf2289557.html#a6361822
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to