-
Incident report
-
Resolution: Unresolved
-
Minor
-
None
-
7.0.18
-
None
Support to use:
head(url)
But in practice, it reports an empty result. This is the contents of "head.js":
var request = new HttpRequest(); return request.head("https://www.zabbix.com");
After testing with:
zabbix_js -s head.js -p 1
It reports an empty result. With request.get("https://www.zabbix.com") it works fine.
The source code responsible for the request seems to be:
https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/libs/zbxembed/httprequest.c?at=release%2F7.0
Expected is a similar output as with "curl" from the command line:
curl --head https://www.zabbix.com/