![[ES]Content-Type header [application/x-www-form-urlencoded] is not supported](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FuBdeK%2FbtrNMHkZYEY%2FAAAAAAAAAAAAAAAAAAAAADeEisKZvF_jAN6fRB5pr6kmphTvuTONvabiebgUHE5d%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D7tGeWE4TIuSIgs6dYDa9KInoKzc%253D)
# 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/..