Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: text/plain');
- echo getenv('REQUEST_METHOD') . "\r\n";
- foreach ($_SERVER as $k => $v) {
- if ((strpos($k, 'HTTP_') === 0 && ($k = substr($k, 5))) || $k == 'CONTENT_TYPE') {
- echo str_replace('_', '-', strtolower($k)) . ": $v\r\n";
- }
- }
- echo "content:\r\n";
- echo file_get_contents('php://input');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement