Forum Discussion
syntax for simple http monitor
- Oct 05, 2022
use this linux bash to watch the pool member http response:
echo -e "HEAD / HTTP/1.1" | nc 192.168.10.11 80
and you Send String use HTTP/1.1, some web server maybe require you bring http Host Header,chang to this:
firstly use echo -e "HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n" | nc 192.168.10.11 80
to watch the pool member response
Send String is HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n
Receive String is HTTP/1\.(0|1) (200|401)
use this linux bash to watch the pool member http response:
echo -e "HEAD / HTTP/1.1" | nc 192.168.10.11 80
and you Send String use HTTP/1.1, some web server maybe require you bring http Host Header,chang to this:
firstly use echo -e "HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n" | nc 192.168.10.11 80
to watch the pool member response
Send String is HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n
Receive String is HTTP/1\.(0|1) (200|401)
Hello Xuwen,
Thanks for your reply
I have some questions to ask you
Why Send String is "HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n"
not "HEAD / HTTP/1.1\r\nConnection: close\r\n\r\n"
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