# Some problem with HTTP POST

**URL:** <https://discuss.elastic.co/t/some-problem-with-http-post/122812>\
**Category:** Elasticsearch\
**Created:** [March 7, 2018, 4:13am UTC](https://discuss.elastic.co/t/some-problem-with-http-post/122812 "2018-03-07T04:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [March 7, 2018, 4:13am UTC](https://discuss.elastic.co/t/some-problem-with-http-post/122812/1 "2018-03-07T04:13:43Z")

</div>

Hi everyone, when I use elasticsearch 5.6.5 version and query REST API through HTPP POST tool all work fine.  
But when I use elasticsearch 6.x.x up version, and it shows me the incorrect format error.  
I know the REST has been changed after the 6.x.x elasticsearch, but I don't know how to modified the query REST API.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c52a785a6f899bec7b5f0c437c574de50c094646.png)  
this query can work on elasticsearch 5.x.x, but can't run on 6.x.x up.

thank you in advance!

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 8, 2018, 8:45am UTC](https://discuss.elastic.co/t/some-problem-with-http-post/122812/2 "2018-03-08T08:45:36Z")

</div>

I wonder if this may be related to the [strict content type checking](https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests) that was introduced in Elasticsearch 6.0.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2018, 8:46am UTC](https://discuss.elastic.co/t/some-problem-with-http-post/122812/3 "2018-04-05T08:46:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
