<?php
header('Content-Type: application/json');
echo json_encode([
    'success' => true,
    'received' => $_POST,
    'raw' => file_get_contents('php://input'),
    'method' => $_SERVER['REQUEST_METHOD']
]);