Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show application/json POST contents in output #1

Open
0xdevalias opened this issue Mar 27, 2014 · 0 comments
Open

Show application/json POST contents in output #1

0xdevalias opened this issue Mar 27, 2014 · 0 comments

Comments

@0xdevalias
Copy link

This would be good for testing application/json posts contain the correct data, etc.

A hacky script I've used to display the contents:

<?php
  if ($_SERVER['REQUEST_METHOD'] === 'POST')
  {
    echo file_get_contents('php://input');
  }
  else
  {
    echo 'Error: Needs more POST';
  }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant