windows安裝好elasticsearch 5.4.0,在指令視窗輸入:
curl -XPOST “localhost:9200/twitter/tweet/1?” -d'{"user":"Tom"}'
總是報Content-type header is not supported ,status:406,求大神幫助
uj5u.com熱心網友回復:
curl -H Content-Type:application/json -XPOST localhost:9200/twitter/tweet/1?pretty -d{\"user\":\"Tom\"} ---->完美!轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/101030.html
標籤:其他數據庫
