Skip to content

Commit 6499a70

Browse files
committed
Replace duplicate curl example with httpie
1 parent 2385812 commit 6499a70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/developers/server_sent_events.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A requirement on the client-side is existing support for the [EventSource](https
1818
There are various ways to access the stream. One is `curl`:
1919

2020
```bash
21-
$ curl -X GET -H "x-ha-access: 12345" \
21+
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
2222
-H "Content-Type: application/json" http://localhost:8123/api/stream
2323
```
2424

@@ -44,10 +44,10 @@ Visit [http://localhost:8123/local/sse.html](http://localhost:8123/local/sse.htm
4444

4545
## {% linkable_title Examples %}
4646

47-
The simplest way to consume server-sent events is `curl`.
47+
A simplest way to consume server-sent events is `httpie`.
4848

4949
```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
5151
```
5252

5353
### {% linkable_title Website %}

0 commit comments

Comments
 (0)