root/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
if (isset($_POST['type']))
    header("Content-Type: {$_POST['type']}");
else
    header("Content-Type: text/plain");

$str = @file_get_contents('php://input');
header("Content-Length: " . strlen($str));
echo $str;
?>

/* [<][>][^][v][top][bottom][index][help] */