Can't get HTTP monitor to work

Hello,

I want to set up a simple HTTP monitor to execute a cgi script :

GET /cgi-bin/script.cgi receive string : service OK

I can successfully perform a CURL or a telnet:80 connection and receive my HTTP response. From web server side, I can also see in my apache logs that everything is OK.

But my monitor does not work. Nothing in my httpd logs. When running a tcpdump from web server side, here is what I’ve got :

*17:42:04.422157 IP 10.20.0.3.52539 > constellation2.bb.http: P 30:59(29) ack 1 win 46 17:42:04.422185 IP constellation2.bb.http > 10.20.0.3.52539: . ack 59 win 46 *

That seems very poor.

Any idea why a monitor could not do what a telnet can do ?

What does your cURL script look like? Is “service OK” in the payload of the response or a header?

try something like this:

GET /cgi-bin/script.cgi\r\n HTTP/1.1\r\nHost: www.xyz.de\r\nConnection: close\r\n\r\n

Thank you very much Torti, it works !