Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php b/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8d180669ec3b798fe40fd46f68e0eb8aa4b72060 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php |
| @@ -0,0 +1,10 @@ |
| +<?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; |
| +?> |
|
tyoshino (SeeGerritForStatus)
2013/11/25 12:35:33
can't we use LayoutTests/http/tests/xmlhttprequest
sof
2013/11/25 15:28:18
Considered at some length, but it is even more bas
|