# How do I send request headers using HTTP input plugin?

**URL:** https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009
**Category:** Logstash
**Created:** [June 16, 2016, 2:55pm UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009 "2016-06-16T14:55:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)
#### Post date: [June 16, 2016, 2:55pm UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/1 "2016-06-16T14:55:36Z")

</div>

The LogStash HTTP output plugin has a headers field that one can use to add custom headers to the http request.  
Why isn't there a headers field for the LogStash HTTP input plugin?

---

<div class="post-metadata">

### Author: ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)
#### Post date: [June 16, 2016, 6:51pm UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/2 "2016-06-16T18:51:28Z")

</div>

Fine. I'll just use exec and get curl to do it for me. 😒

---

<div class="post-metadata">

### Author: ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)
#### Post date: [June 16, 2016, 11:08pm UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/3 "2016-06-16T23:08:00Z")

</div>

Turns out that I needed to move the http\_poller plugin which supports headers, but there are other issues that are blocking me from using LogStash. See [Bug in http\_poller: Environment variables don't always evaluate with http\_poller](https://discuss.elastic.co/t/environment-variables-dont-work-well-enough-with-http-poller/53070).

---

<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, 2016, 1:31am UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/4 "2016-06-18T01:31:03Z")

</div>

> [@iamthealex](#):
>
> Fine. I'll just use exec and get curl to do it for me. 😒

If you are expecting a fast response because _you_ need it now, you may be disappointed.  
The majority of people that use this forum, including the devs, are volunteers, so they have real life to deal with too.

---

<div class="post-metadata">

### Author: ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)
#### Post date: [June 18, 2016, 3:50pm UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/5 "2016-06-18T15:50:14Z")

</div>

That was overly snippy of me, and I apologize. Deadlines make me grumpy. In better news, I'm trying to convince my company to pay for a support subscription. 😃

---

<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 6, 2017, 4:52am UTC](https://discuss.elastic.co/t/how-do-i-send-request-headers-using-http-input-plugin/53009/6 "2017-07-06T04:52:05Z")

</div>


