website/scripts/test-contact.sh
2025-09-30 11:36:51 +00:00

14 lines
285 B
Bash

#!/bin/bash
set -euo pipefail
URL=${1:-https://4nk.network/contact}
printf "POST %s\n" "$URL"
curl -i -sS -X POST "$URL" \
-H 'content-type: application/json' \
--data '{"name":"Test User","email":"test@example.com","message":"Hello from script"}' | sed -u 's/^/[contact] /'