# Curl -i -XHEAD never finish

**URL:** <https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375>\
**Category:** Elasticsearch\
**Created:** [June 14, 2017, 12:38pm UTC](https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375 "2017-06-14T12:38:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmourani](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gmourani](https://discuss.elastic.co/u/gmourani)\
**Post date:** [June 14, 2017, 12:38pm UTC](https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375/1 "2017-06-14T12:38:44Z")

</div>

Hello,

I've successfully updated elastic from version 2.3.5 to latest 5.4.1 version on my CentOS 6.9 Linux. In the past, I used the following command to check if indices exist with success.

/usr/bin/curl -i -XHEAD localhost:9200/\_template/network

Now the same command never finish to run. If I change -XHEAD for -XGET, the command complete ! Look to me that there is something with the -XHEAD command.

Regards,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 18, 2017, 8:23am UTC](https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375/2 "2017-06-18T08:23:21Z")

</div>

> [@gmourani](#):
>
> I used the following command to check if indices exist with success.
> 
> /usr/bin/curl -i -XHEAD localhost:9200/\_template/network

That doesn't check indices though, that checks templates.

What's the reason for the check?

---

<div class="post-metadata">

**Author:** ![gmourani](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gmourani](https://discuss.elastic.co/u/gmourani)\
**Post date:** [June 19, 2017, 5:10pm UTC](https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375/3 "2017-06-19T17:10:44Z")

</div>

Be able to automate the creation of dashboard. I check for the template with the command and if template existe, do nothing, otherwise I run other curl commands that create the template.

---

<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:** [July 17, 2017, 5:10pm UTC](https://discuss.elastic.co/t/curl-i-xhead-never-finish/89375/4 "2017-07-17T17:10:49Z")

</div>

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