/** * TEST CLIENT DEMO * This mimics what the tool (Python/C++/etc.) should do. */ $apiUrl = "https://serverkey.nguonnick.com/api/claim.php"; $secret = "NetGen_Security_Master_2026_@Key"; $payload = [ "license_key" => "CUT-TAY-XXXX", "tool_id" => "AUTO_GOM", "session_id" => "550e8400-e29b-41d4-a716-446655440000", "version" => "1.0.0", "client_ts" => time() ]; $jsonPayload = json_encode($payload); $timestamp = time(); // Generate Signature $signature = hash_hmac('sha256', $jsonPayload . $timestamp, $secret); $headers = [ "Content-Type: application/json", "X-Timestamp: $timestamp", "X-Signature: $signature" ]; // cURL Request $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonPayload); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo "Response from Server:\n"; print_r(json_decode($response, true));