Forum Discussion
HTTPS health monitor with POST
Tried all patterns for below POST call, but all are failing. Server is SaaS hosted and need to monitor with F5 in cloud broker. Since all traffic is encrypted and do not have access to server cert key so can't decrypt the packets. Can anyone help to find out correct send string. Curl command works fine.
# curl --tlsv1.2 -k -v -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Host: www.dummy.com' -d '{"data": {}}' https://1.1.1.1/Status/IsAlive
Tried with below send and receive string -
SEND: POST /Status/IsAlive HTTP/1.1\r\nHost: www.dummy.com\r\nAccept: application/json\r\nConnection: Close\r\nContent-Type: application\json\r\n\r\n{\"data\":\{}\}
Receive: allSystemsOk
2 Replies
- cjunior
Nacreous
Hello,
So, any chance to you try that with "Content-Length" header?
POST /Status/IsAlive HTTP/1.1\r\nHost: www.dummy.com\r\nAccept: application/json\r\nConnection: Close\r\nContent-Type: application/json\r\nContent-Length: 11\r\n\r\n{\"data\":{}}
What BIG-IP version are you testing?
Regards.
- J_Smith
Nimbostratus
Just had the same problem, this was resolved by the Content-Length header as suggested...
Thank you very much!
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com