# How to set content-header in Kibana?

**URL:** <https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851>\
**Category:** Kibana\
**Created:** [July 20, 2017, 12:34am UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851 "2017-07-20T00:34:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![west415](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@west415](https://discuss.elastic.co/u/west415)\
**Post date:** [July 20, 2017, 12:34am UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851/1 "2017-07-20T00:34:25Z")

</div>

Hi,

I'm running Elastic 5.4.3

This should be simple, but how do you set the content-header in Kibana or other console like tool?

If I run this PUT command I get an error:

`PUT /myindex?pretty`

Error: {"error":"Content-Type header [application/x-www-form-urlencoded; charset=UTF-8] is not supported","status":406}

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 20, 2017, 10:32pm UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851/2 "2017-07-20T22:32:29Z")

</div>

Hi there, I just want to confirm that you're seeing this error while executing this query in the Dev Tools Console, is that correct?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![west415](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@west415](https://discuss.elastic.co/u/west415)\
**Post date:** [July 20, 2017, 11:10pm UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851/3 "2017-07-20T23:10:12Z")

</div>

Yes...

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 21, 2017, 5:18am UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851/4 "2017-07-21T05:18:45Z")

</div>

I just ran through the steps you've described on Kibana 5.4.3 and I'm unable to reproduce that error. Are you using X-Pack by any chance? Can you double-check and make sure you're using ES 5.4.3, too? And just to confirm, you're by "content-header" I'm assuming you're referring to the content-type header.

To give you some background, the user shouldn't be required to set the content-type header when using Console, which is why this is a bit unusual to me. I wonder if this is related to [https://github.com/elastic/kibana/issues/10504](https://github.com/elastic/kibana/issues/10504). Could you make your request using CURL and let me know if it still returns the same error?

Thanks,  
CJ

---

<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:** [August 18, 2017, 5:23am UTC](https://discuss.elastic.co/t/how-to-set-content-header-in-kibana/93851/5 "2017-08-18T05:23:44Z")

</div>

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