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/266460-check_http.head.patch | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/attachments/266460-check_http.head.patch (limited to 'web/attachments/266460-check_http.head.patch') diff --git a/web/attachments/266460-check_http.head.patch b/web/attachments/266460-check_http.head.patch new file mode 100644 index 0000000..0b6539c --- /dev/null +++ b/web/attachments/266460-check_http.head.patch @@ -0,0 +1,30 @@ +95a96 +> int use_head = FALSE; +179c208,209 +< INVERT_REGEX = CHAR_MAX + 1 +--- +> INVERT_REGEX = CHAR_MAX + 1, +> USE_HEAD = CHAR_MAX + 2 +209a240 +> {"head", no_argument, 0, USE_HEAD}, +341a373,375 +> case USE_HEAD: +> use_head = 1; +> break; +455a490,497 +> +> 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"); +> } +1292a1335,1337 +> printf (" %s\n", "--head"); +> printf (" %s\n", _("make a HEAD request instead of GET")); +> printf (" %s\n", _("this implies -N\n")); +1341c1386 +< printf (" [-k string] [-S] [-C ] [-T ]\n"); +--- +> printf (" [-k string] [-S] [-C ] [-T ] [--head]\n"); -- cgit v1.2.3-74-g34f1