bashttp/examples/body.sh

10 lines
200 B
Bash
Executable file

#!/bin/bash
# even though we have no headers
# we still need to tell there will be no more headers
printf "\n"
# the body of any http request made will be stored in argument 1
printf "$1"
exit 200