Skip to content

Commit 330d7b6

Browse files
Merge pull request #1 from git-ness/master
Add content type to the curl command
2 parents a8d334d + 82fa95a commit 330d7b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
4) $ bin/elasticsearch
99

1010
### Insert data into elasticsearch
11-
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}'
12-
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}'
13-
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}'
11+
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}'
12+
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}'
13+
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}'
1414

1515

1616
### Run project

0 commit comments

Comments
 (0)