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.
Article Comments
GET is not possible.
As I said we need to send the login data using POST and check in the returning headers/cookies for the presence of Set-Cookie: LtpaToken2. The HTTP Advanced Sensor, as far as I can tell, does not include the headers in the Required Keyword section
Nov, 2016 - Permalink
Unable to use GET at all? If not, check this:
https://helpdesk.paessler.com/en/support/solutions/articles/64415
Nov, 2016 - Permalink