Hi!
I'm trying to create a web monitoring scenario where one of the steps would be authentication with POST request using API. I have tested the request itself with postman and it works exactly as I want it to. But when I try to configure it in Zabbix I receive different http code. Therefore I must be somehow messing up the configuration.
Postman request body:
{
"type": "foo",
"login": "goo",
"password": "hoo"
}
plus I send over one extra header Capthca: none (and all the other auto generated postman headers). This request returns http code 200 and the body with needed authentication information.
Then I try to recreate the same thing in Zabbix (screenshot uploaded). But when I activate the template, the return code is http 500, which happens when "type" value is not something the server recognizes.
I have tried adding all the auto generated postman headers to zabbix, but it didn't help. Unfortunately, I can not dump my trafic from zabbix server to check POST requests "live". I'm using Zabbix 6.0.5 and curl 7.61.1 if it helps.
I'm trying to create a web monitoring scenario where one of the steps would be authentication with POST request using API. I have tested the request itself with postman and it works exactly as I want it to. But when I try to configure it in Zabbix I receive different http code. Therefore I must be somehow messing up the configuration.
Postman request body:
{
"type": "foo",
"login": "goo",
"password": "hoo"
}
plus I send over one extra header Capthca: none (and all the other auto generated postman headers). This request returns http code 200 and the body with needed authentication information.
Then I try to recreate the same thing in Zabbix (screenshot uploaded). But when I activate the template, the return code is http 500, which happens when "type" value is not something the server recognizes.
I have tried adding all the auto generated postman headers to zabbix, but it didn't help. Unfortunately, I can not dump my trafic from zabbix server to check POST requests "live". I'm using Zabbix 6.0.5 and curl 7.61.1 if it helps.