Skip to content

Instantly share code, notes, and snippets.

@Ryanb58
Forked from schovi/curl.example
Created October 4, 2016 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryanb58/8b843c325f81b9e6d26a58b92d3aac02 to your computer and use it in GitHub Desktop.
Save Ryanb58/8b843c325f81b9e6d26a58b92d3aac02 to your computer and use it in GitHub Desktop.
How to use httpie instal of curl with elasticsearch
$ curl -XPUT 'http://localhost:9200/twitter/' -d '{
index : {
number_of_shards : 3
number_of_replicas : 2
}
}'
@Ryanb58
Copy link
Author

Ryanb58 commented Oct 4, 2016

http PUT localhost:9200/twitter/ <<<'{
index : {
number_of_shards : 3
number_of_replicas : 2
}
}'

via redirected input: https://github.com/jkbrzt/httpie#redirected-input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment