Hi Derrell,

sorry for my late reply and thanks for the patch. I had already switched
my stuff to use GET because that's easier for me anyway.
I have applied the patch and switched back to POST which works
perfectly.

Thanks once again,

Jörg


Am Samstag, den 27.02.2010, 16:21 -0500 schrieb Derrell Lipman:
> index 2e8cab9..9038adc 100644
> --- a/qooxdoo/framework/source/class/qx/io/remote/Exchange.js
> +++ b/qooxdoo/framework/source/class/qx/io/remote/Exchange.js
> @@ -839,10 +839,45 @@ qx.Class.define("qx.io.remote.Exchange",
>          value.setUsername(vRequest.getUsername());
>          value.setPassword(vRequest.getPassword());
>  
> -        value.setParameters(vRequest.getParameters());
> +        value.setParameters(vRequest.getParameters(false));
>          value.setFormFields(vRequest.getFormFields());
>          value.setRequestHeaders(vRequest.getRequestHeaders());
> -        value.setData(vRequest.getData());
> +        var data = vRequest.getData();
> +        if (data === null) 
> +        {
> +          var vParameters = vRequest.getParameters(true);
> +          var vParametersList = [];
> +          
> +          for (var vId in vParameters)
> +          {
> +            var paramValue = vParameters[vId];
> +            
> +            if (paramValue instanceof Array)
> +            {
> +              for (var i=0; i<paramValue.length; i++)
> +              {
> +                vParametersList.push(encodeURIComponent(vId) +
> +                                     "=" +
> +
> encodeURIComponent(paramValue[i]));
> +              }
> +            }
> +            else
> +            {
> +              vParametersList.push(encodeURIComponent(vId) +
> +                                   "=" +
> +                                   encodeURIComponent(paramValue));
> +            }
> +          }
> +          
> +          if (vParametersList.length > 0)
> +          {
> +            value.setData(vParametersList.join("&"));
> +          }
> +        }
> +        else
> +        {
> +          value.setData(data);
> +        }
>  
>          value.setResponseType(vRequest.getResponseType());
>  
> 
> 


------------------------------------------------------------------------------
Download Intel&#174; 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