8 lines
331 B
Bash
8 lines
331 B
Bash
#!/bin/bash
|
|
grep -n "</script>" /var/www/weval/wevia-ia/weval-chatbot-api.php
|
|
echo "==="
|
|
# Simulate HTTP POST via internal
|
|
curl -sL -X POST "http://127.0.0.1/api/weval-ia" -H "Host: weval-consulting.com" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"message":"test"}' --max-time 15 -w "\nHTTPCODE=%{http_code}\n" | head -c 500
|