Forum Discussion
Plumtree_72679
Jan 11, 2012Nimbostratus
Sending User-Agent headers properly in health monitor
Folks,
An application (Oracle WebCenter Interaction 10.3.0) throws warnings in the logs (filling them up) each time it is hit by an F5 health monitor. This is because the app is trying to read the headers to find the User-Agent.
The existing health monitor works fine, but triggers the app warning:
monitor portal_http {
defaults from http
dest *:7001
recv "Test Passed"
send "GET //portal/server.pt?PT_HEALTH\r\n"
}
but if I change the send line to:
send "GET //portal/server.pt?PT_HEALTH HTTP/1.1\r\nUser-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1\r\n"
...the members drop from the pool. I don't even see the health check being received by the app.
I tried doubling the \r\n; e.g. \r\n\r\n because I read something about different F5 versions.
The User-Agent string is exactly that which is now sent by my browser to the app, and the app likes it fine.
What am I doing wrong?
Thanks!
Robert Wagner
- nitassEmployeehave you ever tried to add host header? it is required in http 1.1.
- hwidjaja_37598AltostratusCan you try this:
- hooleylistCirrostratusOr with two CRLF's at the end of the HTTP 1.0 request (which does not require the host header):
- Plumtree_72679NimbostratusThanks folks! The solution was, as nitass said, to add a null host header:
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects