How to send array in Httpservice in Adobe Flex3
+1
A:
It really depends what is the back end technology you're using. If you're sending it to PHP you could try:
var fields:Array = ["categories", "organisation"];
var params:Object = {};
params.q = "stackoverflow";
params.rows = 0;
params.facet = "true";
params["facet.field[]"] = fields;
service.send(params);
PHP will generate an array for you. AFAIR this works fine in Rails as well.
radekg
2009-06-18 16:47:34
A:
If it is a simple array, you could send it as a comma separated string.
httpService.request = new Object;
httpService.request.csv = array.toString();
Srirangan
2009-08-14 09:16:20