# {"error":"Content-Type header \[application/x-www-form-urlencoded\] is not supported","status":406}

**URL:** <https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/122017>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 1, 2018, 9:46am UTC](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/122017 "2018-03-01T09:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiang\_Poh\_Lin](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Chiang\_Poh\_Lin](https://discuss.elastic.co/u/Chiang_Poh_Lin)\
**Post date:** [March 1, 2018, 9:46am UTC](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/122017/1 "2018-03-01T09:46:00Z")

</div>

Hi, so i was installing elk on server following this website: [https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04#load-kibana-dashboards](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04#load-kibana-dashboards)  
so until here:  
cd ~  
curl -L -O [https://download.elastic.co/beats/dashboards/beats-dashboards-1.1.0.zip](https://download.elastic.co/beats/dashboards/beats-dashboards-1.1.0.zip)  
Install the unzip package with this command:

sudo apt-get -y install unzip  
Next, extract the contents of the archive:

unzip beats-dashboards-\*.zip  
And load the sample dashboards, visualizations and Beats index patterns into Elasticsearch with these commands:

cd beats-dashboards-\*  
./load.sh

when i try ./load.sh  
alot of  
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}  
came out, what can i do?

 ![11](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b51d6c951369ae41b57bcba1587693bc4571982b.PNG)

i googled and it says to add this line -H "Content-Type: application/json  
? it seems irrelevant to my situation ?

the load.sh :--

> <https://github.com/buehler/twitterbeat/blob/master/kibana/load.sh>

i also read that : [https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests](https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests)  
they did some changes so scripts need to be change..but can someone suggest how should i change it?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 4, 2018, 5:34am UTC](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/122017/2 "2018-03-04T05:34:40Z")

</div>

We now include the dashboards directly with each beat and you can load it with the beat directly

It seems in the above you are using a community beat. If you want to load these dashboards with the script you must make sure to adjust the curl command to also include the json header.

---

<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 1, 2018, 5:34am UTC](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/122017/3 "2018-04-01T05:34:43Z")

</div>

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