Forum Discussion
Raj_57800
Nimbostratus
Apr 15, 2010Monitor using host header
I am trying to setup a monitor page using host header. It is working when when it is done manually but not when created as a monitor page. Request experts advice. Thanks
Testing through Teln...
L4L7_53191
Nimbostratus
Apr 16, 2010I think problem is that you're using telnet for this. Use something like netcat instead - it'll honor the literal \r\n characters and allow you to really mock up what the mointor string is doing. When you're doing it via telnet, every time you're hitting the return key you're appending another \r\n, so you're breaking the request, hence the 400 status.
For example, I've copied this from your post above Raj:
echo -e 'GET /monitor/f5bigip.html HTTP/1.1\r\nHost: dev-apps.test.com:80\r\nConnose\r\n\r\n' | nc 10.100.100.10 80
...which produces:
HTTP/1.1 200 OK
Date: Fri, 16 Apr 2010 17:44:20 GMT
Connection: close
Content-Type: text/html
Content-Length: 10
Server: TwistedWeb/9.0.0
Success! Please post back if netcat doesn't work for you.
HTH,
-Matt
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