Forum Discussion

Reginald_Sible1's avatar
Reginald_Sible1
Icon for Nimbostratus rankNimbostratus
Mar 10, 2017

HTTP monitor that sends a message to a server that is looking for the word "OPTIONS"

I want to create an HTTP monitor that sends a message to a server that is looking for the word "OPTIONS"

 

and keeps the monitor up by receiving a 200 ok. Can anyone assist?

 

4 Replies

  • Hi, I understood you need this:

    Send String:

    OPTIONS / HTTP/1.1\r\nHost: yoursite.domain.com\r\nConnection: close\r\n\r\n

    Receive String:

    200 OK

    I hope it helps.

  • Hope this is string OPTIONS not http method OPTION.

    cjunior has given output of string 'OPTIONS'.

    To achieve this you need to create TCP monitor with GET method, send string ‘OPTIONS’ and receive string '200 OK'.

    To validate above output you need to run command on F5 CLI 'telnet yoursite.domain.com portnumber' and enter below

    OPTIONS / HTTP/1.1\r\nHost: yoursite.domain.com\r\nConnection: close\r\n\r\n

    You will see Receive String:

    200 OK
    

    Hope it will solve your query. Paste if you have any questions.

    • Samir_Jha_52506's avatar
      Samir_Jha_52506
      Icon for Noctilucent rankNoctilucent

      GET method should be used for requests where you are only getting data. Here you wanted to retrieve

      200 OK
      value in http response.