# TICK Script HttpPost Headers

**URL:** <https://community.influxdata.com/t/tick-script-httppost-headers/4463>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [March 21, 2018, 10:37am UTC](https://community.influxdata.com/t/tick-script-httppost-headers/4463 "2018-03-21T10:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kev](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/kev/32/1944_2.png) [@Kev](https://community.influxdata.com/u/Kev)\
**Post date:** [March 21, 2018, 10:37am UTC](https://community.influxdata.com/t/tick-script-httppost-headers/4463/1 "2018-03-21T10:37:43Z")

</div>

Hi,

Is it possible to send variable headers with a HttpPost in Kapacitor? I need to make a POST-call to a rest API with the hostname and alert level of the machine that triggered the alert. (E.g. adding keys and values in the post header)

When I try the following:

```
|alert()
    ...
    .post()
    .header('machine', '{{ index .Tags "host" }}')
    .header('level', '{{.Level}}')

```

Then I get the strings ‘{{ index .Tags “host”}}’, ‘{{.Level}}’ and not the values they hold.  
Is there any way to fix this?

Thanks in advance!
