Advertisement
thexiv

API sweeper

Mar 8th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. <?php
  2.     session_start();
  3. echo json_encode($_SERVER);
  4.     $content = ($_SERVER['REQUEST_METHOD'] == "GET") ? json_encode($_GET) : json_encode($_POST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement