2006-09-30 14:34:49 +00:00
|
|
|
<?php
|
|
|
|
$wait = $_REQUEST['wait'];
|
|
|
|
if($wait) {
|
|
|
|
sleep($wait);
|
|
|
|
}
|
|
|
|
$xml = $_REQUEST['xml'];
|
|
|
|
if($xml) {
|
|
|
|
header("Content-type: text/xml");
|
|
|
|
eval("\$result = $xml;");
|
|
|
|
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
$name = $_REQUEST['name'];
|
|
|
|
if($name == 'foo') {
|
|
|
|
echo "bar";
|
|
|
|
die();
|
|
|
|
} else if($name == 'peter') {
|
|
|
|
echo "pan";
|
|
|
|
die();
|
|
|
|
}
|
2006-12-04 20:42:38 +00:00
|
|
|
$request = apache_request_headers();
|
2006-12-05 22:58:27 +00:00
|
|
|
$request = $request['X-Custom-Header'];
|
2006-12-04 20:42:38 +00:00
|
|
|
if(strlen($request) > 0) {
|
|
|
|
echo $request;
|
|
|
|
die();
|
|
|
|
}
|
2006-11-21 09:55:34 +00:00
|
|
|
echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
|
2006-09-30 14:34:49 +00:00
|
|
|
?>
|