Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4746

Healthcheck with xml post in body

$
0
0

@glenn wrote:

Hello, I have a healthcheck that requires a POST of xml in the body. I can run the below curl command and it works.. but the question is how do I code this into the haproxy.cfg file?

curl -v mywebserver/wfc/XmlService -H "Content-Type: application/xml" -d "<?xml version='1.0'?><Kronos_WFC version='1.0'><Request Object='System' Action='Logon' Username='myuser' Password='mypass'/><Request Action='RetrieveResponseTime' retrieveFor='pingWithDB'><HeartBeat/></Request><Request Object='System' Action='Logoff'/></Kronos_WFC>"

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>