AFAIK you need this:
$postdata = file_get_contents("php://input");
Details: http://php.net/manual/en/wrappers.php.php
Or maybe the other way:
(I am bit lost in your question.)
The main idea there:
curl_setopt($ch, CURLOPT_POSTFIELDS, "numbers\nnumbers\n..." );