Viel neues
This commit is contained in:
9
qa-tool/htdocs/api/echo.php
Normal file
9
qa-tool/htdocs/api/echo.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode([
|
||||
'ok'=>true,
|
||||
'method'=>$_SERVER['REQUEST_METHOD'] ?? null,
|
||||
'post'=>$_POST,
|
||||
'files'=>array_map(fn($f)=>['name'=>$f['name']??null,'size'=>$f['size']??null,'type'=>$f['type']??null,'error'=>$f['error']??null], $_FILES ?? [])
|
||||
]);
|
||||
Reference in New Issue
Block a user