Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 20, 2019 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/24ac7f3227f86ba9e77aabd6e4361a0e to your computer and use it in GitHub Desktop.
Save parzibyte/24ac7f3227f86ba9e77aabd6e4361a0e to your computer and use it in GitHub Desktop.
<?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