Add content-type to curl (#531)
This commit is contained in:
parent
36f0192053
commit
258d4172d8
6 changed files with 42 additions and 20 deletions
|
@ -18,7 +18,8 @@ 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: YOUR_PASSWORD" http://localhost:8123/api/stream
|
||||
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-H "Content-Type: application/json" http://localhost:8123/api/stream
|
||||
```
|
||||
|
||||
For more comfort put the HTML snippet below in a file `sse.html` in your `www` folder of your Home Assistant configuration directory (`.homeassistant`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue