Update http.md

This commit is contained in:
alexey-milovidov 2019-12-03 04:06:53 +03:00 committed by GitHub
parent cf9a636100
commit edbe6c7638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,13 +88,6 @@ Using the familiar INSERT query for data insertion:
$ echo 'INSERT INTO t VALUES (1),(2),(3)' | curl 'http://localhost:8123/' --data-binary @-
```
You can add [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) header using the `-H` flag:
```bash
$ echo 'INSERT INTO t VALUES (1),(2),(3)' | curl 'http://localhost:8123/' --data-binary @- -H 'Content-Type: text/plain;charset=UTF-8'
```
Data can be sent separately from the query:
```bash