Advertisement
stuppid_bot

Хуета

Nov 12th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. header('Content-Type: text/plain');
  4. echo getenv('REQUEST_METHOD') . "\r\n";
  5. foreach ($_SERVER as $k => $v) {
  6.     if ((strpos($k, 'HTTP_') === 0 && ($k = substr($k, 5))) || $k == 'CONTENT_TYPE') {
  7.         echo str_replace('_', '-', strtolower($k)) . ": $v\r\n";
  8.     }
  9. }
  10. echo "content:\r\n";
  11. echo file_get_contents('php://input');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement