content/http checks with interesting URLs
Christoph Berg
cb at df7cb.de
Wed Mar 19 17:31:12 CET 2008
Hi,
one of our customers wanted a content check for a URL looking roughly
like:
http://100.1.2.3:8080/httpserver/httpserver/isalive.jsp?password=aaa
Hobbit barfs on the "/http" in there and thinks this is http check
with a proxy URL. The following patch fixes this:
--- a/lib/url.c
+++ b/lib/url.c
@@ -563,7 +563,9 @@ char *decode_url(char *testspec, bburl_t
if (poststart) getescapestring(poststart, &bburl->postdata, NULL);
if (expstart) getescapestring(expstart, &bburl->expdata, NULL);
- p = strstr(urlstart, "/http");
+ p = strstr(urlstart, "/http://");
+ if (!p)
+ p = strstr(urlstart, "/https://");
if (p) {
proxystart = urlstart;
urlstart = (p+1);
Christoph
--
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080319/6ed125bb/attachment.sig>
More information about the Xymon
mailing list