15 lines
286 B
Bash
15 lines
286 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] /'
|
|
|
|
|
|
|
|
|
|
|