[DEV] first post methode availlable

This commit is contained in:
2014-05-06 21:11:04 +02:00
parent c936af3c64
commit 488658aecf
4 changed files with 104 additions and 14 deletions

27
test/index.php Executable file
View File

@@ -0,0 +1,27 @@
<?php
// force display of error
error_reporting(E_ALL);
ini_set('display_errors', '1');
date_default_timezone_set('Europe/Paris');
echo "plop<br/>\n";
//echo $_POST;
if ( isset($_POST) == true
&& empty($_POST) == false) {
foreach ($_POST as $key => $value) {
echo "key='".$key."' val='".$value."'<br>\n";
}
}
if ( isset($HTTP_RAW_POST_DATA) == true
&& empty($HTTP_RAW_POST_DATA) == false) {
echo "raw data :'".$HTTP_RAW_POST_DATA."'<br>\n";
}
if ( isset($_SERVER)
&& isset($_SERVER["CONTENT_TYPE"]) ) {
echo "content Type : '".$_SERVER["CONTENT_TYPE"]."'<br>\n";
}
?>