{
"error":"Content-Type header [application/x-www-form-urlencoded] is not supported",
"status":406
}
虽然我使用了标题Content-Type
以下是我用于索引客户索引的客户文档的命令:
curl -XPUT localhost:9200/customer/doc/1 -H 'Content-Type:application/json' -d '{"name":"abcd"}'