lukecyca/pyzabbix

Working with Headers

mjducharme opened this issue · 1 comments

Hello,

I believe I figured out how to use custom HTTP headers from the requests library. However, the issue that I am running into is that the moment I have the line zapi = ZabbixAPI("http://my.zabbix.server") it tries to connect to that, which fails as the custom HTTP headers are not yet present.

Am I doing something wrong? How can I fix this? I do not want it to attempt to connect to Zabbix until the custom HTTP headers are there as they are required for it to connect.

Thanks!

Basically duplicate of #165