Currently, web.page.get[] and related items work by simply sending the following request to the specified server:
"GET /%s HTTP/1.1\r\n"
"Host: %s\r\n"
"Connection: close\r\n"
"\r\n"
Clearly, this does not provide any capabilities of fetching Web pages over HTTPS or using HTTP authentication.
The format of web.page.get[] is "web.page.get[host,<path>,<port>]". Why don't we make use of cURL and make it "web.page.get[<url>]"? That would make HTTPS and HTTP authentication readily available.
- duplicates
-
ZBXNEXT-1816 Use Curl for the agent's web.page items
- Closed