Forum Discussion
http monitor failed
- Dec 05, 2014
If you use HTTP/1.1, the Host: header is required. You can try a simple GET request without an HTTP version and so on, but some web servers won't like it. My recomendation would be to include HTTP version, include the Host header, and also send a connection close.
Send: GET /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest HTTP/1.1\r\nHost: hostname\r\nConnection: close\r\n\r\n
If you want to match anything between 200 and 399 as a response, you will need to use a regular expression in the receive string. My recommendation would be to use a request that produces a consistent result so you don't have to guess.
Receive: [23][0-9][0-9]
Your HTTP monitor should look something like this:
GET /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest HTTP/1.1\r\nHost:(if required) \r\n\r\n
Then look for 200 in response field
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