Ad Widget

Collapse

Web scenario keep getting 400

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ponze
    Junior Member
    • May 2018
    • 2

    #1

    Web scenario keep getting 400

    Hi everyone, stepping on well-known struggle - getting web checks to work.

    I'm trying to configure a successful web check to two different host that are behind a proxy. executing the relevant URL always redirects to ONE of the two available web servers. i'm trying to pinpoint the check to query every time the same web server instead of pinging between the two.

    When i use curl from Zabbix server everything works for example: curl http://***.***.***.***/health.html --header "host:contoso.domain.net" -vvv - it gets the response from the single host as expected.

    Applying this curl on a web scenario step - fails with 400 in return.

    i configure the URL as - http://***.***.***.***/health.html

    I configure the Headers section with - host:contoso.domain.net

    + follow redirects is on (not sure if its relevant for my case.)

    What am i missing?

    Thanks in advance guys.

  • Ponze
    Junior Member
    • May 2018
    • 2

    #2
    Solution found - it was miss configuration of the Headers "name" field - which is not a general name as i thought, its the name of the parameter - i.e host
    Last edited by Ponze; 28-05-2018, 09:32. Reason: Solution found

    Comment

    Working...