add support for specifying http-headers and really use Method spezified

This commit is contained in:
Tobias Knipping
2016-07-24 16:21:11 +02:00
parent 0de0baf5f9
commit 2c364f3d2f
4 changed files with 51 additions and 24 deletions

View File

@@ -28,6 +28,11 @@ Configuration
"url": "Ping URL",
// optional, http method (defaults GET)
"method": "get",
// optional, http Headers to add (default none)
"headers": [
// specify Name and Value of Http-Header, eg. Authorization
{ "name": "Authorization", "value": "Basic <hash>" }
],
// self-signed ssl certificate
"strict_tls": true,
// seconds between checks