Health check response

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:

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)

Solved using hdr host