Skip to content

Instantly share code, notes, and snippets.

@codebynumbers
Created February 4, 2012 21:16
Show Gist options
  • Select an option

  • Save codebynumbers/1740180 to your computer and use it in GitHub Desktop.

Select an option

Save codebynumbers/1740180 to your computer and use it in GitHub Desktop.
mirror.php
<?
$rawpost = file_get_contents("php://input");
print '$_GET'."\n";
print_r($_GET);
print str_repeat("=",30)."\n";
print '$_POST'."\n";
print_r($_POST);
print str_repeat("=",30)."\n";
print 'RAW POST'."\n";
print_r($rawpost);
print str_repeat("=",30)."\n";
print '$_COOKIE'."\n";
print_r($_COOKIES);
print str_repeat("=",30)."\n";
print '$_SERVER'."\n";
print_r($_SERVER);
print str_repeat("=",30)."\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment