# How to set up input for https curl and header key?

**URL:** <https://discuss.elastic.co/t/how-to-set-up-input-for-https-curl-and-header-key/142231>\
**Category:** Logstash\
**Created:** [July 30, 2018, 5:54pm UTC](https://discuss.elastic.co/t/how-to-set-up-input-for-https-curl-and-header-key/142231 "2018-07-30T17:54:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![emanresu](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@emanresu](https://discuss.elastic.co/u/emanresu)\
**Post date:** [July 31, 2018, 3:41pm UTC](https://discuss.elastic.co/t/how-to-set-up-input-for-https-curl-and-header-key/142231/7 "2018-07-31T15:41:09Z")

</div>

Thank you for your feedback Badger. Yes, I am referring to the machine where logstash is running. I still get the 'name or service not known' error. Here is my config:

```
input {
  http {
    host => "https://54.87.179.29/1.0/json/A9575EEEE9F446928FD237049"
    port => 443 
	response_headers => { "api_key" => "zBA7goakSWiEY19w1A7aHA" }
  }
}
output {
  stdout {
    codec => rubydebug
  }
}

```

What can I try now?

---

_[View the full topic](https://discuss.elastic.co/t/how-to-set-up-input-for-https-curl-and-header-key/142231)._
