Hello Mutaz,
this is a feature of curl. You need to quote the whole URL :
curl -H "Content-Type: application/json" -X POST -d '{"name":"Mutaz"}' "
http://localhost:8080/testMutaz/test?param1=ab¶m2=cd"
Best regards,
Thierry Boileau
Hi
>
> I'm making this request to a Restlet resource:
>
> curl -v -H "Content-Type: application/json" -X POST -d '{"name":"Mutaz"}'
> http://localhost:8080/accounts?param1=ab¶m2=cd
>
> I'd like to be able to get param1, param2 values in my resource. However,
> I'm getting only the value of the first parameter (param1) where
> getQuery().toString() output is only:
>
> [(param1,ab)]
>
>
> I'm using Version 2.0.11 (stable) J2EE
>
> Can anybody please tell me what is going wrong?
>
> Thanks
> Mutaz
>
>
> --
> View this message in context:
> http://restlet-discuss.1400322.n2.nabble.com/Can-t-retrieve-multiple-querystring-paramaters-tp7391789p7391789.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2938230
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2945377