HTTP / HTTPS syntax Monitor check from CLI
Problem this snippet solves: When creating monitor, we usually check web site availability with curl.
These commands allow to check if HTTP Monitor send string is correct How to use this snippet:...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Stanislas_Piro2
Aug 06, 2018Cumulonimbus
Why did you add 2 \ in send string ? did you get it from tmsh which add a second \ in config file?
try this:
(echo -ne "GET / HTTP/1.1\r\nHost: abc.com\r\nConnection: Close\r\n"; cat) | openssl s_client -connect 1.1.1.1:443 -quiet