Forum Discussion

David_M's avatar
David_M
Icon for Cirrostratus rankCirrostratus
Jun 25, 2019

Health monitor with login check and content length

I found SOL : https://support.f5.com/csp/article/K1033?sr=58157087

It says:

To create an HTTP 1.1 post, use the following syntax:

POST /MyApp.cgi HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\nContent-Length: 10\r\nAuthorization: Basic <string>\r\n\r\0123456789

In this syntax, note the following: <string> is the output from step 1

For example:

POST /MyApp.cgi HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\nContent-Length: 10\r\nAuthorization: Basic ZjU6ZjVwYXNzd2Q=\r\n\r\0123456789

In these examples, your content length of 10 would match the length of your message body, which in this example is 0123456789.

You do not need to specify a user name and password in the monitor configuration when performing this workaround.

----------------

What exactly is the last message body part? Why is it required and what value do we need to use there? 

Is it just some placeholder to simulate a real request?