diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/254104-check_http.c-head-patch | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/254104-check_http.c-head-patch')
-rw-r--r-- | web/attachments/254104-check_http.c-head-patch | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | 75d74 | ||
2 | < int use_head = FALSE; | ||
3 | 176,177c175 | ||
4 | < INVERT_REGEX = CHAR_MAX + 1, | ||
5 | < USE_HEAD = CHAR_MAX + 2 | ||
6 | --- | ||
7 | > INVERT_REGEX = CHAR_MAX + 1 | ||
8 | 208d205 | ||
9 | < {"head", no_argument, NULL, USE_HEAD}, | ||
10 | 376,378d372 | ||
11 | < case USE_HEAD: | ||
12 | < use_head = 1; | ||
13 | < break; | ||
14 | 459,466d452 | ||
15 | < if ( use_head == 1 ) { | ||
16 | < if ( strcmp(http_method, "POST") == 0 ) | ||
17 | < usage4 (_("Using POST data and HEAD requests is not supported")); | ||
18 | < else | ||
19 | < no_body = TRUE; | ||
20 | < http_method = strdup("HEAD"); | ||
21 | < } | ||
22 | < | ||
23 | 1320,1322d1305 | ||
24 | < printf (" %s\n", "--head"); | ||
25 | < printf (" %s\n", _("make a HEAD request instead of GET")); | ||
26 | < printf (" %s\n", _("this implies -N\n")); | ||
27 | 1398c1381 | ||
28 | < printf (" [-k string] [-S] [-C <age>] [-T <content-type>] [--head]\n"); | ||
29 | --- | ||
30 | > printf (" [-k string] [-S] [-C <age>] [-T <content-type>]\n"); | ||