From b34669fff3d779e39a3d5c6545200ec1fd571e32 Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Sat, 7 Jun 2003 00:46:41 +0000 Subject: \r\n patch from Mathias git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@538 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_real.c b/plugins/check_real.c index 0bfa446..535abbf 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -97,15 +97,15 @@ main (int argc, char **argv) /* Part I - Server Check */ /* send the OPTIONS request */ - sprintf (buffer, "OPTIONS rtsp://%s:%d RTSP/1.0\n", host_name, server_port); + sprintf (buffer, "OPTIONS rtsp://%s:%d RTSP/1.0\r\n", host_name, server_port); result = send (sd, buffer, strlen (buffer), 0); /* send the header sync */ - sprintf (buffer, "CSeq: 1\n"); + sprintf (buffer, "CSeq: 1\r\n"); result = send (sd, buffer, strlen (buffer), 0); /* send a newline so the server knows we're done with the request */ - sprintf (buffer, "\n"); + sprintf (buffer, "\r\n"); result = send (sd, buffer, strlen (buffer), 0); /* watch for the REAL connection string */ -- cgit v0.10-9-g596f