changeset 25:74f0036928e2

Add script for sending debug requests
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 10 Dec 2016 12:06:07 +0100
parents 0a0ea2b34787
children d584798666b9
files scripts/post_debug.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/post_debug.sh	Sat Dec 10 12:06:07 2016 +0100
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# This script reads a JSON object from stdin and posts it to the
+# webhook handler of a running binary (on localhost:4000 with the shared secret 'secret')
+
+curl -X POST -H "Content-Type: application/json" -D- -d @- http://localhost:4000/hook?secret
+
+echo