4. El servicio lee los datos

index.html

const respuesta = await consume(
 submitFormRecibeJson(
  "api/procesa.php", formulario))
const json =
 await respuesta.json()
alert(json)

Hace wait esperando response.

api/procesa.php

$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
$resultado =
 "{$saludo} {$nombre}.";
devuelveJson($resultado);

Request

POST /api/procesa.php HTTP/1.1 Accept: application/json, application/problem+json
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: es-MX,es-ES;q=0.9,es;q=0.8,en;q=0.7,gl;q=0.6,pt;q=0.5
Connection: keep-alive
Content-Length: 21
Content-Type: application/x-www-form-urlencoded
Cookie: __test=610630da28570bec7a7a24ad4391af68
Host: srvform.rf.gd
Origin: https://srvform.rf.gd
Referer: https://srvform.rf.gd/?i=1
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
sec-ch-ua: "Chromium";v="148", "Google Chrome";v="148", "Not/A)Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"

saludo: hola
nombre: pp
saludo=hola&nombre=pp

Memoria (Servidor)

$saludo
"hola"
$nombre
"pp"
skip_previous skip_next