Forum Discussion

Sanjay_Palande's avatar
Jul 17, 2019

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

  • 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's avatar
      J_Smith
      Icon for Nimbostratus rankNimbostratus

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

      Thank you very much!