$indata = file_get_contents("php://input");
$newdata = array(
"http" => array(
"method" => "POST",
"header" =>
"HTTP/1.1" . "\r\n" .
"Content-Type: application/octet-stream" . "\r\n" .
"Content-Length: " . strlen($indata) . "\r\n",
"Content" => $indata,
),
);
$outdata = file_get_contents("http://where.to/redirect", false, stream_context_create($newdata));
file_put_contents("php://output", $outdata);