I've got a server which accepts photo uploads via http POST. The post parameters include a "photo" argument and a variety of other parameters dealing with whether the photo is to be public or private, etc. The POST line would be constructed something like this:
photo=/path/to/photo&ispublic=1&title=faketitle&......etc
I'm trying to set up a Web Monitoring scenario that will perform an upload in order to verify that the functionality is working properly. The http response from the server contains success or error messages and I am able to examine these in the Zabbix server logs. I'm running into the following error: "No photo specified".
The photo is located on the zabbix server. I have made it 777 permissions. I've tried different photo names and different paths. In the POST argument I've tried enclosing it in double quotes, without quotes, and have placed it in different spots in the parameter list. But I always get this same error.
Which makes me wonder whether Web Scenario can actually handle an API like this?
photo=/path/to/photo&ispublic=1&title=faketitle&......etc
I'm trying to set up a Web Monitoring scenario that will perform an upload in order to verify that the functionality is working properly. The http response from the server contains success or error messages and I am able to examine these in the Zabbix server logs. I'm running into the following error: "No photo specified".
The photo is located on the zabbix server. I have made it 777 permissions. I've tried different photo names and different paths. In the POST argument I've tried enclosing it in double quotes, without quotes, and have placed it in different spots in the parameter list. But I always get this same error.
Which makes me wonder whether Web Scenario can actually handle an API like this?