diff --git a/XMLHttpRequest/resources/content.php b/XMLHttpRequest/resources/content.php index cf5db0bdb42e22..402e0418c63554 100644 --- a/XMLHttpRequest/resources/content.php +++ b/XMLHttpRequest/resources/content.php @@ -4,6 +4,13 @@ header("X-Request-Query: " . (isset($_SERVER["QUERY_STRING"]) ? $_SERVER["QUERY_STRING"] : "NO")); header("X-Request-Content-Length: " . (isset($_SERVER["CONTENT_LENGTH"]) ? $_SERVER["CONTENT_LENGTH"] : "NO")); header("X-Request-Content-Type: " . (isset($_SERVER["CONTENT_TYPE"]) ? $_SERVER["CONTENT_TYPE"] : "NO")); - echo file_get_contents("php://input"); - exit; +if (isset($_GET["content"])) +{ + echo $_GET["content"]; +} +else +{ + echo file_get_contents("php://input"); +} +exit; ?>