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

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • None

      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)

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

              Created:
              Updated:
              Resolved: