[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
content/http checks with interesting URLs
- To: Hobbit <hobbit (at) hswn.dk>
- Subject: content/http checks with interesting URLs
- From: Christoph Berg <cb (at) df7cb.de>
- Date: Wed, 19 Mar 2008 17:31:12 +0100
- User-agent: Mutt/1.5.17+20080114 (2008-01-14)
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/