mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 18:16:12 +00:00
14 lines
234 B
Bash
Executable File
14 lines
234 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Usage: http POST :8080/echo msg==hello foo=bar
|
|
|
|
echo "Echo script:"
|
|
|
|
echo "Command result: hostname=`hostname`"
|
|
|
|
echo "Header variable: User-Agent=$user_agent"
|
|
|
|
echo "Query parameter: msg=$msg"
|
|
|
|
echo "Body payload: $1"
|