curl examples

curl -H "Content-Type: application/json" -H "token":"chenshi" -d '{"site":"chenshi.de"}' https://chenshi.de -w '\n'

curl -X POST "http://spark:8080/app/kill/?id=${appId}&terminate=true"

curl -o /dev/null -s -w "%{http_code}\n" https://chenshi.de

curl -XPUT -u "chenshi:chenshi.de" -H "Content-Type: application/json" -d '{"index":{"number_of_replicas":0}}' http://localhost:9200/_settings