Options

http health monitor to login on website

How can i make a http health monitor that does a login on a website.
I've tried it with post health monitor using the following fields
<input id="name" type="text" value="" name="org.apache.jetspeed.login.username">
<input id="password" type="password" name="org.apache.jetspeed.login.password"
In the health monitor template
name=<username>&password=<password> and expecting a certain word after succesfull login on the webpage
Only when looking on webserver in the jetspeed.log we see the health monitor trying but it the username and password are not beeing submitted to the login proces.
<input type="submit" value="Login" name="submit_login"> how can i make the post helath monitor do the login button submit ?

Using default username and password fields in template also don't get the expected results.
Thany you in advance.

Comments

  • Options
    tmitsuhatatmitsuhata Member, Administrator admin
    edited December 2014
    Hi ivdouden,

    The default username and password fields can be used for the authentication using HTTP authorization header.

    Here is a sample POST data for HTTP POST health monitor when I tested with a wordpress server.
    [POST data]
    log=admin&pwd=password&wp-submit=Log+In&redirect_to=http%3A%2F%2F10.10.10.10%2Fwp-admin%2F&testcookie=1

    Base on my test, you may want to try something like this:
    org.apache.jetspeed.login.username=USERNAME&org.apache.jetspeed.login.password=PASSWORD&submit_login=Login


    Hope it helps.
  • Options
    ivdoudenivdouden Member
    edited December 2014
    Thanx i'll start testing and let you know the results.

    Kind regards Igor
Sign In or Register to comment.