# Curl: (7) couldn't connect to host

**URL:** <https://discuss.elastic.co/t/curl-7-couldnt-connect-to-host/162709>\
**Category:** Elasticsearch\
**Created:** [January 2, 2019, 8:05pm UTC](https://discuss.elastic.co/t/curl-7-couldnt-connect-to-host/162709 "2019-01-02T20:05:27Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [January 3, 2019, 4:02pm UTC](https://discuss.elastic.co/t/curl-7-couldnt-connect-to-host/162709/20 "2019-01-03T16:02:14Z")

</div>

he means: Copy and Paste your entire `elasticsearch.yml` file here, but when you do so, highlight the whole text and use the `</>` icon in the toolbar to make the syntax of the file easier to read

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/7/67829a4882b25022ecb4a61074b495827defe783.png)

---

_[View the full topic](https://discuss.elastic.co/t/curl-7-couldnt-connect-to-host/162709)._
