File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ A requirement on the client-side is existing support for the [EventSource](https
18
18
There are various ways to access the stream. One is ` curl ` :
19
19
20
20
``` bash
21
- $ curl -X GET -H " x-ha-access: 12345 " \
21
+ $ curl -X GET -H " x-ha-access: YOUR_PASSWORD " \
22
22
-H " Content-Type: application/json" http://localhost:8123/api/stream
23
23
```
24
24
@@ -44,10 +44,10 @@ Visit [http://localhost:8123/local/sse.html](http://localhost:8123/local/sse.htm
44
44
45
45
## {% linkable_title Examples %}
46
46
47
- The simplest way to consume server-sent events is ` curl ` .
47
+ A simplest way to consume server-sent events is ` httpie ` .
48
48
49
49
``` bash
50
- $ curl http://localhost:8123/api/stream? api_password=MYPASS
50
+ $ http --stream http://localhost:8123/api/stream x-ha-access:YOUR_PASSWORD content-type:application/json
51
51
```
52
52
53
53
### {% linkable_title Website %}
You can’t perform that action at this time.
0 commit comments