Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-80

httptest.c sets CURLOPT_FOLLOWLOCATION, so redirections cannot be monitored

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The web monitor follows redirections, making it impossible to monitor, for example, a 302 status code. Here is a use case:

      We have an application that required https. http://myapp/* redirects to https://myapp/*. I want to be able to set up a scenario step that checks http://myapp/ and gets a redirect status code (302) to ensure that my apache redirect/rewrite is in place.

      I understand that this may not be the "usual" behavior that most people would want (to not follow the redirection), but I believe it should be an option to configure whether or not CURLOPT_FOLLOWLOCATION is set. If I have some time – no promises there – I may look into rolling a patch.

      (reference httptest.c:311)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhriggs Jim Riggs
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: