Question: The following code sends data to a test page which just var\_dumps the \_REQUEST variable.The page doesn't get the post parameter but gets the get parameters.Why is this happening?

```
<?php
     $jsonData = '{"Page":"index.html","KeyNumber":12132321}';
     $timeout = 20; 
     $options = array(
       CURLOPT_URL => "http://myadmin/postdump.php?AID=100&age=5&ishide=0",
       CURLOPT_RETURNTRANSFER => true, 
       CURLOPT_CONNECTTIMEOUT => $timeout,
       CURLOPT_POST => true,
       CURLOPT_POSTFIELDS =>'jsonData='.$jsonData,
       CURLOPT_ENCODING=>"",
       CURLOPT_FOLLOWLOCATION=>true
       );

     $ch = curl_init();
     curl_setopt_array($ch, $options);
     $file_contents = curl_exec($ch);
     curl_close($ch);

     echo  $file_contents;
?>  

```

Answer: 
I had that kind of problem some time ago.
I suggest you to load first as a text, remove those line breaks, the extra amphersands and parse manually:

```
var textVariables:String;
var objectVariables:Object = new Object();
...
myLoader.addEventListener(Event.COMPLETE, onLoaded, false, 0, true);
myLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlRqSend = new URLRequest(addressToTxt.txt);

public function onLoaded(e:Event):void {
    textVariables = myLoader.data;
    textVariables = textVariables.split("\n").join("").split("\r").join(""); // removing line breaks
    textVariables = textVariables.split("&&").join("&"); // removing extra amphersands

    var params:Array = textVariables.split('&');

    for(var i:int=0, index=-1; i < params.length; i++)
    {
        var keyValuePair:String = params[i];
        if((index = keyValuePair.indexOf("=")) > 0)
        {
             var key:String = keyValuePair.substring(0,index);
             var value:String = keyValuePair.substring(index+1);
             objectVariables[key] = value;
             trace("[", key ,"] = ", value);
        }
    } 

}

```

I wrote that code directly here, I don't have any AS3 editor here, so, maybe you'll find errors.
If you have data in String and it has a structure just like you wrote, you can do a workaround:

```
dataInString = dataInString.split("\n").join("").split("\r").join(""); // removing EOL
dataInString = dataInString.slice(0,-1); // removing last "&"
dataInString = dataInString.slice(0,1); // removing first "&"

var array:Array = dataInString.split("&&");
var myVariables:Object = new Object();

for each(var item:String in array) {
    var pair:Array = item.split("=");
    myVariables[pair[0]] = pair[1];
}

```

That should make you an object with proper variables.