Hi,
We have a webap where we would like to use PRTG to monitor if login is still possible.
Is it possible to send a POST request and then check for the presence of "Set-Cookie: LtpaToken2" in the returning headers? Like with the curl command below.
$ curl -d "user=login&password=example" -D- https://<url to webseite with POST data handler>
HTTP/1.1 302 Found
Date: Mon, 28 Nov 2016 08:23:13 GMT
X-Powered-By: Servlet/3.0
Location: https://<url to webseite with POST data handler>
Content-Length: 0
Set-Cookie: JSESSIONID=<sessionid>:-1; Path=/; HttpOnly
Set-Cookie: LtpaToken2=<TokenID>; Path=/; HttpOnly
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Language: de-DE
We can send a POST request with the HTTP Advanced Sensor but we don't seem to be able to parse the returning headers or check for the presence of the Set-Cookie: LtpaToken2. Is there another sensor for this kind of task?
Thanks for any help.
Add comment