2018-01-15 10:51:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-08-28 15:45:10 +00:00
|
|
|
# Usage: http POST :8080/echo msg==hello foo=bar
|
2018-01-15 10:51:15 +00:00
|
|
|
|
2021-05-07 07:29:53 +00:00
|
|
|
echo "This is a simple echo hook."
|
|
|
|
|
2022-05-26 07:05:49 +00:00
|
|
|
echo "Hook information: name=$hook_name, id=$hook_id, method=$hook_method"
|
2018-01-15 10:51:15 +00:00
|
|
|
|
2018-08-28 15:45:10 +00:00
|
|
|
echo "Command result: hostname=`hostname`"
|
2018-01-15 10:51:15 +00:00
|
|
|
|
2018-08-28 15:45:10 +00:00
|
|
|
echo "Header variable: User-Agent=$user_agent"
|
|
|
|
|
|
|
|
echo "Query parameter: msg=$msg"
|
|
|
|
|
|
|
|
echo "Body payload: $1"
|