Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2303

If POST is used in web scenario all next steps will be using POST

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.3
    • 1.6.8, 1.8.2
    • Server (S)
    • None

      If there is POST data in some test step zabbix will use POST method for further steps even if they do not.

      This is caused by not resetting the curl handle and once CURLOPT_POSTFIELDS is set curl seems to set CURLOPT_POST to 1.

      Issue can be fixed by adding following to the while loop in process_httptest function: src/zabbix_server/httppoller/httptest.c:

      curl_easy_setopt(easyhandle, CURLOPT_POST, 0);

      This will default libcurl to using GET and only use POST where intended. I suppose this could also be added as else for: if(httpstep.posts[0] != 0)

            Unassigned Unassigned
            hnsk Hannu Ylitalo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: