{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

在对 ES 进行请求时,报错{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406},解解决方法是加入HTTP头参数json curl -H "Content-Type: application/json" -XPOST "ES请求语句"app
相关文章
相关标签/搜索