From 993e24ed33066e75d6f971cb7ec36a11603dd79e Mon Sep 17 00:00:00 2001 From: Markus Grüneis Date: Wed, 22 Oct 2014 18:55:33 +0200 Subject: hub: add basic POST support --- src/hub/test-client | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/hub/test-client') diff --git a/src/hub/test-client b/src/hub/test-client index c9d7b91..0696bc5 100755 --- a/src/hub/test-client +++ b/src/hub/test-client @@ -1,8 +1,12 @@ #!/bin/sh echo import sample.json -time socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe - +socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe echo show query result -wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z +wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z' + +echo '\npost update' +wget --post-file='../../dat/sample-post.json' 'http://localhost:8000/updates' + +echo '\ndone' -- cgit v1.2.3