-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
2.4.5
-
Arch Linux
Using web scenario to test a web login using POST data does not work.
after some testing using curl i fount that the problem could be the authentication cookie not read by zabbix after post data
reading documentation i see that "All cookies are preserved during the execution of a single scenario"
dig in into the code i found this :
./src/zabbix_server/httppoller/httptest.c
LIne 389 : CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, "")) ||
CURLOPT_COOKIEFILE is used by curl to read cookie , but is set to empty
in my case i need to write/read a cookie so i try this one :
CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, "/tmp/zabbix_cookie")) ||
CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEJAR, "/tmp/zabbix_cookie")) ||
rebuild the server , now the login step is working