cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

HTTPS health monitor with POST

SanjayP
MVP
MVP

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 2

cjunior
Nacreous
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.

Just had the same problem, this was resolved by the Content-Length header as suggested...

Thank you very much!