bashttp/examples/body.sh

11 lines
200 B
Bash
Raw Normal View History

#!/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