# Heart beat 7.4 https post request

**URL:** <https://discuss.elastic.co/t/heart-beat-7-4-https-post-request/205150>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [October 24, 2019, 8:40pm UTC](https://discuss.elastic.co/t/heart-beat-7-4-https-post-request/205150 "2019-10-24T20:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparashara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sparashara/32/56553_2.png) [@sparashara](https://discuss.elastic.co/u/sparashara)\
**Post date:** [October 24, 2019, 8:40pm UTC](https://discuss.elastic.co/t/heart-beat-7-4-https-post-request/205150/1 "2019-10-24T20:40:24Z")

</div>

Hi Everyone,

I am trying to configure https POST URL in metric beat. Goal is to monitor api via uptime. When i test the url from post man it works perfectly but i configure same in yaml files in heartbeat it always says down. Please help me on this

```auto
- type: http
  name: testing
  enabled: true
  schedule: '@every 5s' # every 5 seconds from start of beat
  urls: ["https://xxxxxxxxxxxxxxxxxxx"]
  ipv4: true
  ipv6: true
  mode: any
  #Request settings:
  check.request:
    method: "POST"
    headers: 
        'Content-Type': 'application/json'
        'customerheader': '2aeumyabe3i9ir4ii0i'
    body: ' {"name":"abc"}'
  check.response:
      status: 200

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [October 28, 2019, 3:18pm UTC](https://discuss.elastic.co/t/heart-beat-7-4-https-post-request/205150/2 "2019-10-28T15:18:05Z")

</div>

Can you share the exact response/error that you get?

---

<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:** [November 25, 2019, 3:18pm UTC](https://discuss.elastic.co/t/heart-beat-7-4-https-post-request/205150/3 "2019-11-25T15:18:11Z")

</div>

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