I effectively used the setParameter with a true for the asData
parameter. With this call and a post request, the data does come
naturaly.
In fact it is present in the request. but with paramter name and the
js object seems to be url encoded.

My work around was to use setparameter with put and set data with post.


I did'nt use both setparameter and setdata on the same request.

2011/3/16 Derrell Lipman <[email protected]>:
> On Wed, Mar 16, 2011 at 17:51, Benjamin Dreux <[email protected]>
> wrote:
>>
>> Hi,
>> I've build a qooxdoo/servlet app.
>>
>> But i've got an issue when using qx.io.remote.request.
>> I can't use setData when i use a PUT, and i can't use setParameter
>> (with the asData switch) when using a POST.
>> Is that this the expected beahvior ?
>
> Hi Benjamin,
> To my knowledge, PUT is used very rarely with qooxdoo, and there may well be
> some inconsistencies.
> POST is well-used, and should work properly. The setParameter() method has
> traditionally been used mostly for GET, and the asData parameter is somewhat
> new, but has been known to be working properly. You didn't specify which
> boolean value you're providing for asData. If you pass 'false' then the
> parameters will be added to the URL. That's the traditional meaning, and
> that should work properly. If you pass 'true' then the "Notes" in the
> documentation becomes relevant:
>      * Note: Parameters requested to be sent as data will be silently
> dropped
>      *       if data is manually added via a call to setData().
>      *
>      * Note: Some transports, e.g. Script, do not support passing parameters
>      *       as data.
>      *
> Are you calling setData() as well as setParameter()?
> If you provide a bit more detail, maybe a solution can be easily found.
> Cheers,
> Derrell
>
>>
>> By the way the api documentation about this class look a bit stang,
>> some time it only talk about get and post, some other time it talk
>> about 4 of the http verbs. A review will be welcome here.
>>
>> --
>> Benjamin Dreux
>> Analyste-Programmeur
>> Chaire de logiciel libre-Finance Social et solidaire
>> UQAM
>> Montréal
>>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>



-- 
Benjamin Dreux
Analyste-Programmeur
Chaire de logiciel libre-Finance Social et solidaire
UQAM
Montréal

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to