elasticsearch6.x {error:Content-Type header [application/x-www-form-urlencoded] is not supported
版權聲明:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/dtiove/article/details/78870607
問題描述
curl -XPOST 192.168.14.173:32000/test_index_1221/test_type/5 -d '{'user_name':"xiaoming"}'
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
??? 1
??? 2
官方解釋:
官方改變
解決方法
curl -H "Content-Type: application/json" -XPOST 192.168.14.173:32000/test_index_1221/test_type/5 -d '{'user_name':"xiaoming"}'
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
??? 1
??? 2
指定header頭即可
---------------------
作者:dtiove
來源:CSDN
原文:https://blog.csdn.net/dtiove/article/details/78870607
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!
總結
以上是生活随笔為你收集整理的elasticsearch6.x {error:Content-Type header [application/x-www-form-urlencoded] is not supported的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 借款用途填写什么比较容易通过
- 下一篇: 搭建elsticsearch集群 报错