summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8af4ed)
raw | patch | inline | side by side (parent: a8af4ed)
author | Matthew Kent <mattkent@users.sourceforge.net> | |
Sat, 20 Nov 2004 21:36:52 +0000 (21:36 +0000) | ||
committer | Matthew Kent <mattkent@users.sourceforge.net> | |
Sat, 20 Nov 2004 21:36:52 +0000 (21:36 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@915 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 5ec212a29d69463207306bb3da934489707552c8..c48e97cd0977573369958b092355cf7e7d8f2bf6 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
}
if (display_html == TRUE)
- printf ("<A HREF=\"%s%s:%d%s\" target=\"_blank\">",
- use_ssl ? "https://" : "http://", host_name,
+ printf ("<A HREF=\"%s://%s:%d%s\" target=\"_blank\">",
+ use_ssl ? "https" : "http", host_name,
server_port, server_url);
/* initialize alarm signal handling, set socket timeout, start timer */
static int
document_headers_done (char *full_page)
{
- const char *body, *s;
- const char *end;
+ const char *body;
for (body = full_page; *body; body++) {
if (!strncmp (body, "\n\n", 2) || !strncmp (body, "\n\r\n", 3))
page = full_page;
if (verbose)
- printf ("%s://%s:%d%s is %d characters\n", server_type, server_address, server_port, server_url, pagesize);
+ printf ("%s://%s:%d%s is %d characters\n",
+ use_ssl ? "https" : "http", server_address,
+ server_port, server_url, pagesize);
/* find status line and null-terminate it */
status_line = page;