Forum Discussion
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
- cjunior
Nacreous
Hi, I understood you need this:
Send String:
OPTIONS / HTTP/1.1\r\nHost: yoursite.domain.com\r\nConnection: close\r\n\r\nReceive String:
200 OKI hope it helps.
- Samir_Jha_52506
Noctilucent
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\nYou will see Receive String:
200 OKHope it will solve your query. Paste if you have any questions.
- Reginald_Sible1
Nimbostratus
What would my string look like with the GET method?
- Samir_Jha_52506
Noctilucent
GET method should be used for requests where you are only getting data. Here you wanted to retrieve
value in http response.200 OK
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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