Skip to content

Instantly share code, notes, and snippets.

@hernantz
Last active April 16, 2016 01:57
Show Gist options
  • Save hernantz/97f0331edc7628a416c9a8217013699d to your computer and use it in GitHub Desktop.
Save hernantz/97f0331edc7628a416c9a8217013699d to your computer and use it in GitHub Desktop.
HTTPie POST JSON
# Example of how to query elasticsearch with httpie
echo '{"query": {"match": {"name": "beer"}}}' | http POST :9200/my_index/my_doctype/_search/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment