[monitoring-plugins] Added missing CR in DESCRIBE request.
Holger Weiss
git at monitoring-plugins.org
Fri Nov 28 16:30:09 CET 2014
Module: monitoring-plugins
Branch: master
Commit: 94c1a4a433a4c657532a9bc180046963edf6d954
Author: Andrew Berglund <t3hc13h at gmail.com>
Committer: Holger Weiss <holger at zedat.fu-berlin.de>
Date: Fri Sep 5 09:44:09 2014 -0400
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=94c1a4a
Added missing CR in DESCRIBE request.
---
plugins/check_real.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 36f6413..e7ab9d0 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -163,17 +163,17 @@ main (int argc, char **argv)
/* Part I - Server Check */
- /* send the OPTIONS request */
- sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\n", host_name,
+ /* send the DESCRIBE request */
+ sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\r\n", host_name,
server_port, server_url);
result = send (sd, buffer, strlen (buffer), 0);
/* send the header sync */
- sprintf (buffer, "CSeq: 2\n");
+ sprintf (buffer, "CSeq: 2\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 */
More information about the Commits
mailing list