Forum Discussion
Problem with Receive String by https
Hallo all,
I have a web server with http and https.
The healt monitor with http is running. But the monitor with https is not work if I set the receive string.
list ltm monitor https HTTPS-Test:
7 Replies
- eneR
Cirrostratus
Hi!
so the Monitor should show it up when the server answers with a "401 Unauthorized"?
Or what is your goal? - Stanislas_Piro2
Cumulonimbus
one \r\n is missing at the end of the send statement.
it must be :
GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n - Andre-Germany
Nimbostratus
I have change to: GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n the result is the same
- TechT
Nimbostratus
Can you check from CLI , if you are receiving the expected Receive String by doing a GET / ? Also why dont you add the url for Host: and see whats the response is ? GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n **URL --> is your test url. - Stanislas_Piro2
Cumulonimbus
the curl command to test the monitor is: curl -i --http1.1 -H "Host: " -H "Connection: Close" https://x.x.x.x/ | grep "HTTP/1.1 401 Unauthorized" or with openssl: openssl s_client -connect www.google.fr:443 allow to connect to SSL server and send HTTP version as telnet for HTTP followed by: GET / HTTP/1.1 Host: Connection: Close
- Andre-Germany
Nimbostratus
Thanks for the tipp with openssl. In my SendString was a mistake. The right SendString is GET / HTTP/1.1\nHost: xy\nConnection: Close\n
- Stanislas_Piro2
Cumulonimbus
So your web app required host header value.
When defining monitor, each newline must be replaced by \r\n. The last line must be empty, that's why you need two new line : \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