[ES]Content-Type header [application/x-www-form-urlencoded] is not supported
# DataBase/Elasticsearch2022. 10. 4. 16:04[ES]Content-Type header [application/x-www-form-urlencoded] is not supported

수정전 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty -d ' {"title" : "Algorithm", "professor" : "John"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } ES6.0이후 정책으로 인하여 헤더에 컨텐츠타입을 지정해줘야함. 수정후 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty >-H 'Content-Type: application/..

image