# Elastic license

**URL:** <https://discuss.elastic.co/t/elastic-license/68859>\
**Category:** Elasticsearch\
**Created:** [December 13, 2016, 11:41am UTC](https://discuss.elastic.co/t/elastic-license/68859 "2016-12-13T11:41:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [December 13, 2016, 11:41am UTC](https://discuss.elastic.co/t/elastic-license/68859/1 "2016-12-13T11:41:08Z")

</div>

Tried to update my license with a:  
curl -XPUT -u elastic '[http://localhost:9200](http://localhost:9200)\>/\_xpack/license' -d @license.json

But this results in a:  
curl: (1) Protocol "'http" not supported or disabled in libcurl

When using " instead of ' I receive a:  
No handler found for uri [/\_xpack/license] and method [PUT]

Anyone an idea what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [December 13, 2016, 11:48am UTC](https://discuss.elastic.co/t/elastic-license/68859/2 "2016-12-13T11:48:09Z")

</div>

> [@Mario\_van\_Gemert](#):
>
> curl -XPUT -u elastic '[http://localhost:9200](http://localhost:9200)\>/\_xpack/license' -d @license.json

Is the `>`after the port number part of the command you are using? It shouldn't be.

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [December 13, 2016, 11:50am UTC](https://discuss.elastic.co/t/elastic-license/68859/3 "2016-12-13T11:50:29Z")

</div>

When I remove the 9200 I receive a:

curl: (1) Protocol "'http" not supported or disabled in libcurl

Sorry did not read your response correct.

I removed the \> but still receive a:

curl: (1) Protocol "'http" not supported or disabled in libcurl

When I use:

curl -XPUT -u elastic '[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)' -d @license.json

I receive a:

curl: (1) Protocol "'http" not supported or disabled in libcurl

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [December 13, 2016, 1:19pm UTC](https://discuss.elastic.co/t/elastic-license/68859/4 "2016-12-13T13:19:50Z")

</div>

> [@Mario\_van\_Gemert](#):
>
> "'http"

Notice the tiny single slash `'` quote as the secong character in there? For some reason it thinks the protocol is `'http`. I just tried your first command on my Mac and it seems to work. What machine are you running this on?

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [December 13, 2016, 2:17pm UTC](https://discuss.elastic.co/t/elastic-license/68859/5 "2016-12-13T14:17:47Z")

</div>

I am running on a pc with Windows 10.

When I remove the single slashes, I get a:

No handler found for uri [/\_xpack/license] and method [PUT]

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [December 13, 2016, 2:34pm UTC](https://discuss.elastic.co/t/elastic-license/68859/6 "2016-12-13T14:34:27Z")

</div>

[PUT][quote="Mario\_van\_Gemert, post:5, topic:68859"]  
No handler found for uri [/\_xpack/license] and method [PUT]  
[/quote]

That sound a bit like x-pack isn't installed to me. Just to be sure, can you repost the command that you are running on your windows machine? Also which version of curl do you use (I'm not familiar with Windows if there are different implementations)

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [December 13, 2016, 2:41pm UTC](https://discuss.elastic.co/t/elastic-license/68859/7 "2016-12-13T14:41:26Z")

</div>

Commando's used:

curl -XPUT -u elastic '[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)' -d @license.json  
Results in: curl: (1) Protocol "'http" not supported or disabled in libcurl

curl -XPUT -u elastic "[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)" -d @license.json  
Results in: No handler found for uri [/\_xpack/license] and method [PUT]

Curl version: curl 7.48.0

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [December 13, 2016, 3:00pm UTC](https://discuss.elastic.co/t/elastic-license/68859/8 "2016-12-13T15:00:46Z")

</div>

Problem solved!

The correct command is:  
curl -XPUT -u elastic "[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)" -d @license.json

Problem was that I was forgotten to stop/start Elastic, this to effectuate the x-pack plugin.

To acknowledge:

curl -XPUT -u elastic "[http://localhost:9200/\_xpack/license?acknowledge=true](http://localhost:9200/_xpack/license?acknowledge=true)" -d @license.json

Problem solved!

Thnx Christoph! You put me on the right track by mentioning the x-pack not being installed correctly.

---

<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:** [January 10, 2017, 3:00pm UTC](https://discuss.elastic.co/t/elastic-license/68859/9 "2017-01-10T15:00:45Z")

</div>

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