{"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
相關文章
相關標籤/搜索