I need to send a HTTP request (and get XML response) from Flash that looks similar to following:
http://example.com/somepath?data=1&data=2&data=3
You cannot use loadvars like this - because data
can be either 1 or 2 or 3, not all of them at the same time.
You can either pass it as a comma separated list:
var req:LoadVars = new LoadVars();
req["data"] = "1,2,3";
or as an xml string, and parse it at the server. I am not familiar with manipulating xml in AS2, but this is how you'd do it in AS3:
var xml:XML = ;
xml.appendChild(1);
xml.appendChild(2);
xml.appendChild(3);
//now pass it to loadvars
req["data"] = xml.toXMLString();
The string you send is:
1
2
3