From 1f91df553c5c5beeffc4745f50b6535cbc76c7a8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 28 Jan 2018 14:56:12 +0100 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index 0436b93..5d891e5 100644 --- a/Configuration.md +++ b/Configuration.md @@ -56,7 +56,11 @@ python -m platypush Send requests: ```shell -curl -XPOST -d "token=YOUR_TOKEN" -d 'msg={"type":"request","target":"volta","action":"shell.exec", "args": {"cmd":"echo ping"}}' http://localhost:8008 | jq +curl -XPOST \ + -H "Content-Type: application/json" \ + -H "X-Token: YOUR_TOKEN" \ + -d '{"type":"request","target":"your_hostname","action":"shell.exec", "args": {"cmd":"echo ping"}}' \ + http://localhost:8008/execute ``` ```json