-
-
Save parzibyte/24ac7f3227f86ba9e77aabd6e4361a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
@author parzibyte | |
*/ | |
echo json_encode( | |
[ | |
"metodo" => $_SERVER["REQUEST_METHOD"], | |
"encabezados" => getallheaders(), | |
"datos" => file_get_contents("php://input"), | |
"post" => $_POST, | |
"cadena_consulta" => $_GET | |
], | |
JSON_PRETTY_PRINT | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment