From 6499a70163303666d505d775e15535931f01838c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jul 2016 22:04:13 +0200 Subject: [PATCH] Replace duplicate curl example with httpie --- source/developers/server_sent_events.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/developers/server_sent_events.markdown b/source/developers/server_sent_events.markdown index 86dc50952aa..67bda991c28 100644 --- a/source/developers/server_sent_events.markdown +++ b/source/developers/server_sent_events.markdown @@ -18,7 +18,7 @@ A requirement on the client-side is existing support for the [EventSource](https There are various ways to access the stream. One is `curl`: ```bash -$ curl -X GET -H "x-ha-access: 12345" \ +$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \ -H "Content-Type: application/json" http://localhost:8123/api/stream ``` @@ -44,10 +44,10 @@ Visit [http://localhost:8123/local/sse.html](http://localhost:8123/local/sse.htm ## {% linkable_title Examples %} -The simplest way to consume server-sent events is `curl`. +A simplest way to consume server-sent events is `httpie`. ```bash -$ curl http://localhost:8123/api/stream?api_password=MYPASS +$ http --stream http://localhost:8123/api/stream x-ha-access:YOUR_PASSWORD content-type:application/json ``` ### {% linkable_title Website %}