# Health check response

**URL:** <https://discourse.haproxy.org/t/health-check-response/11357>\
**Category:** Help!\
**Created:** [October 30, 2024, 6:23pm UTC](https://discourse.haproxy.org/t/health-check-response/11357 "2024-10-30T18:23:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![creamers](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@creamers](https://discourse.haproxy.org/u/creamers)\
**Post date:** [October 30, 2024, 6:23pm UTC](https://discourse.haproxy.org/t/health-check-response/11357/1 "2024-10-30T18:23:08Z")

</div>

Hi,

Searched a lot and maybe it’s been asked already somewhere but cannot seem to get it to work.  
Hope someone can give me some troubleshooting tips.

I have:

```auto
option httpchk
http-check send meth POST uri / hdr Content-Type application/json body.............
http-check expect string succeeded

```

Now sthis works on the haproxy servers using curl, it return “succeeded”.  
But haproxy doesnt see the same output and shows:

`failed, reason: Layer7 invalid response, info: "HTTP content check did not match"`

How to debug ths haproxy health checks so I can see what the response was?  
Also, is it possible to see all the http-check responses in the logs?  
(I use the docker version of haproxy)

---

<div class="post-metadata">

**Author:** ![creamers](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@creamers](https://discourse.haproxy.org/u/creamers)\
**Post date:** [October 31, 2024, 8:00am UTC](https://discourse.haproxy.org/t/health-check-response/11357/2 "2024-10-31T08:00:55Z")

</div>

Solved using `hdr host`
