summaryrefslogtreecommitdiff
path: root/examples/body.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/body.sh')
-rwxr-xr-xexamples/body.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/body.sh b/examples/body.sh
new file mode 100755
index 0000000..5c56df2
--- /dev/null
+++ b/examples/body.sh
@@ -0,0 +1,10 @@
+#!/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