From fb32bf82dd9ab4f6846b4234c8b3ce564a1b1064 Mon Sep 17 00:00:00 2001 From: Antti Kuosmanen Date: Wed, 25 May 2016 14:03:56 +0200 Subject: [PATCH] Include HTTP headers in httptest data to be matched in regex for --- src/zabbix_server/httppoller/httptest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zabbix_server/httppoller/httptest.c b/src/zabbix_server/httppoller/httptest.c index 6c88c0d..2c7143f 100644 --- a/src/zabbix_server/httppoller/httptest.c +++ b/src/zabbix_server/httppoller/httptest.c @@ -388,6 +388,7 @@ static void process_httptest(DC_HOST *host, zbx_httptest_t *httptest) if (CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_PROXY, httptest->httptest.http_proxy)) || CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, "")) || + CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_HEADER, 1L)) || CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_USERAGENT, httptest->httptest.agent)) || CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_WRITEFUNCTION, WRITEFUNCTION2)) || CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_HEADERFUNCTION, HEADERFUNCTION2)) || -- 2.3.6