diff options
Diffstat (limited to 'plugins/check_http.c')
| -rw-r--r-- | plugins/check_http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 82cd1d9c..81071d75 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
| @@ -774,7 +774,7 @@ check_http (void) | |||
| 774 | } else { | 774 | } else { |
| 775 | asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf); | 775 | asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf); |
| 776 | } | 776 | } |
| 777 | 777 | ||
| 778 | asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); | 778 | asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); |
| 779 | asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); | 779 | asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); |
| 780 | } | 780 | } |
| @@ -936,7 +936,7 @@ check_http (void) | |||
| 936 | } /* end if (http_status >= 300) */ | 936 | } /* end if (http_status >= 300) */ |
| 937 | 937 | ||
| 938 | } /* end else (server_expect_yn) */ | 938 | } /* end else (server_expect_yn) */ |
| 939 | 939 | ||
| 940 | if (maximum_age >= 0) { | 940 | if (maximum_age >= 0) { |
| 941 | check_document_dates (header); | 941 | check_document_dates (header); |
| 942 | } | 942 | } |
| @@ -1048,7 +1048,7 @@ redir (char *pos, char *status_line) | |||
| 1048 | addr = malloc (MAX_IPV4_HOSTLENGTH + 1); | 1048 | addr = malloc (MAX_IPV4_HOSTLENGTH + 1); |
| 1049 | if (addr == NULL) | 1049 | if (addr == NULL) |
| 1050 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate addr\n")); | 1050 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate addr\n")); |
| 1051 | 1051 | ||
| 1052 | url = malloc (strcspn (pos, "\r\n")); | 1052 | url = malloc (strcspn (pos, "\r\n")); |
| 1053 | if (url == NULL) | 1053 | if (url == NULL) |
| 1054 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); | 1054 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); |
| @@ -1322,7 +1322,7 @@ print_help (void) | |||
| 1322 | printf (" %s\n", _("When the certificate of 'www.verisign.com' is valid for more than 14 days,")); | 1322 | printf (" %s\n", _("When the certificate of 'www.verisign.com' is valid for more than 14 days,")); |
| 1323 | printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than")); | 1323 | printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than")); |
| 1324 | printf (" %s\n", _("14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when")); | 1324 | printf (" %s\n", _("14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when")); |
| 1325 | printf (" %s\n\n", _("the certificate is expired.")); | 1325 | printf (" %s\n", _("the certificate is expired.")); |
| 1326 | #endif | 1326 | #endif |
| 1327 | 1327 | ||
| 1328 | printf (_(UT_SUPPORT)); | 1328 | printf (_(UT_SUPPORT)); |
