I need to check backend with POST JSON but cannot find a way to do this. Below is the curl POST that works. How do I do with in HAPROXY httpchk
curl -H "Content-Type: application/json" -X POST -d '["za.co.calculator",{"grossMonthlyIncome":["java.math.BigDecimal",100000.00],"loanTermYears":20,"interestRate":["java.math.BigDecimal",10.25]}]' https://servername/calculator/api/calculator/calculateMaximumLoanAmount
My HaProxy config is:
option httpchk POST /calculator-service-2.0/api/calculator/calculateMaximumLoanAmount HTTP/1.1\r\nContent-Type: application/json\r\nContent-Length: 174\r\n\r\n{"za.co.fnb.soa.calculator.dto.S_MaxBondInputInfo",{"grossMonthlyIncome":["java.math.BigDecimal",100000.00],"loanTermYears":20,"interestRate":["java.math.BigDecimal",10.25]}}