This commit is contained in:
php-curl-class
2013-08-20 17:10:28 -07:00
parent 7d7c0d69c9
commit c63bee9447
+6 -9
View File
@@ -19,23 +19,20 @@ if ($test == 'http_basic_auth') {
));
exit;
}
else if ($test === 'put') {
header('Content-Type: text/plain');
header('Content-Type: text/plain');
if ($test === 'put') {
$value = isset($_GET[$key]) ? $_GET[$key] : '';
echo $value;
}
else if ($test === 'post') {
header('Content-Type: text/plain');
$value = isset($_POST[$key]) ? $_POST[$key] : '';
echo $value;
}
else if ($test === 'server') {
header('Content-Type: text/plain');
$value = isset($_SERVER[$key]) ? $_SERVER[$key] : '';
echo $value;
}
else if ($test === 'cookie') {
header('Content-Type: text/plain');
$value = isset($_COOKIE[$key]) ? $_COOKIE[$key] : '';
echo $value;
}
echo $value;