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

web scenarios and http headers - setting Host in header changes which address check is done against

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • None
    • 3.4.12
    • None
    • None
    • zabbix 3.4.12 downloaded from zabbix.com. I always experience this same issue in zabbix 2.4.2 and was hoping the upgrade would have fixed this.

      Steps to reproduce:

      1. Changes in configuration...
        under scenario Headers   Name: Host    Value: hostname.com
        under steps url is defined as http://$\{HOST.DNS}:1833/login/do-login
        my assumption is that the curl would go to http://$\{HOST.DNS}:1833/login/do-login, but supply the header of Host: hostname.com

       

      Result:

      the check fails because it's trying to go to hostname.com and not http://$\{HOST.DNS}:1833

      Expected:

      it's expected that this should work by going to the host defined in the check, but supplying Host in the headers.  Instead the host header is being used as the address the check is going against. 

       

            Unassigned Unassigned
            bunkzilla bunkzilla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: