From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/254104-check_http.c-head-patch | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/attachments/254104-check_http.c-head-patch (limited to 'web/attachments/254104-check_http.c-head-patch') diff --git a/web/attachments/254104-check_http.c-head-patch b/web/attachments/254104-check_http.c-head-patch new file mode 100644 index 0000000..490a6a4 --- /dev/null +++ b/web/attachments/254104-check_http.c-head-patch @@ -0,0 +1,30 @@ +75d74 +< int use_head = FALSE; +176,177c175 +< INVERT_REGEX = CHAR_MAX + 1, +< USE_HEAD = CHAR_MAX + 2 +--- +> INVERT_REGEX = CHAR_MAX + 1 +208d205 +< {"head", no_argument, NULL, USE_HEAD}, +376,378d372 +< case USE_HEAD: +< use_head = 1; +< break; +459,466d452 +< if ( use_head == 1 ) { +< if ( strcmp(http_method, "POST") == 0 ) +< usage4 (_("Using POST data and HEAD requests is not supported")); +< else +< no_body = TRUE; +< http_method = strdup("HEAD"); +< } +< +1320,1322d1305 +< printf (" %s\n", "--head"); +< printf (" %s\n", _("make a HEAD request instead of GET")); +< printf (" %s\n", _("this implies -N\n")); +1398c1381 +< printf (" [-k string] [-S] [-C ] [-T ] [--head]\n"); +--- +> printf (" [-k string] [-S] [-C ] [-T ]\n"); -- cgit v1.2.3-74-g34f1