0) {
$_COOKIE = $HTTP_COOKIE_VARS;
}
if (count($HTTP_GET_VARS) > 0) {
$_GET = $HTTP_GET_VARS;
}
if (count($HTTP_POST_VARS) > 0) {
$_POST = $HTTP_POST_VARS;
}
if (! isset($_SERVER)) {
$_SERVER = $HTTP_SERVER_VARS;
}
$raw_post_data = file_get_contents('php://input');
require_once('page_request.php');
?>
Simple test target file
A target for the SimpleTest test suite.
Request
- Protocol version
- Request method
- Accept header
Cookies
0) {
foreach ($_COOKIE as $key => $value) {
print htmlentities($key) . "=[" . htmlentities($value) . "]
\n";
}
}
?>
Raw GET data
GET data
0) {
foreach ($get as $key => $value) {
if (is_array($value)) {
$value = implode(', ', $value);
}
print htmlentities($key) . "=[" . htmlentities($value) . "]
\n";
}
}
?>
Dump of $_GET data
';
print_r($_GET);
print '';
?>
Raw POST data
POST data
$value) {
$html .= htmlentities($key) . "=[";
if (is_array($value)) {
$html .= show_array_value($value);
} else {
$html .= htmlentities($value);
}
$html .= "]";
}
return $html;
}
if (count($_POST) > 0) {
echo show_array_value($_POST)."
\n";
}
?>