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

**URL:** <https://discuss.elastic.co/t/content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/229528>\
**Category:** Elasticsearch\
**Created:** [April 23, 2020, 6:38pm UTC](https://discuss.elastic.co/t/content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/229528 "2020-04-23T18:38:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [April 27, 2020, 12:00am UTC](https://discuss.elastic.co/t/content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/229528/4 "2020-04-27T00:00:23Z")

</div>

If you're running on Windows with at least PowerShell 3.0+, you can always give the [`Elastic.Console`](https://github.com/elastic/powershell/tree/master/Elastic.Console) PowerShell module a try. It provides a _curl_-like experience in PowerShell with API path and method completion

To [install in PowerShell from the PowerShell gallery](https://www.powershellgallery.com/packages/Elastic.Console/7.6.0-rc1)

```auto
Install-Module Elastic.Console -AllowPrerelease

```

Upon installation, the module will be configured with the APIs matching the version returned from

```auto
Get-ElasticsearchVersion

```

If you want to run with a different version of APIs, you can set this with

```auto
Set-ElasticsearchVersion 7.6.2

```

If not already downloaded, this will download the REST API specs of 7.6.2 version, which are used to power autocompletion.

Then, to make an API call

```auto
Invoke-Elasticsearch http://localhost:9200/inspections/_doc/_search -Body @'
{ "query": { "match": { "business_name": "soup" } }}
'@

```

`es` is an alias for `Invoke-Elasticsearch`, and `http://localhost:9200` is the default protocol, host and port, so this can be shortened to

```auto
es inspections/_doc/_search -Body @'
{ "query": { "match": { "business_name": "soup" } }}
'@

```

---

_[View the full topic](https://discuss.elastic.co/t/content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/229528)._
