Angelo
Jan 30, 2013Nimbostratus
custom monitoring
Hi
I need to make a custom monitor that retieves a index page and tries to login to the page is this even possible...
THank you
Angelo Amoojee
Hi
I need to make a custom monitor that retieves a index page and tries to login to the page is this even possible...
THank you
Angelo Amoojee
==================
POST /index.php HTTP/1.1
Host: www.example.com
username=bob&password=mypassword
==================
Which equates to this single line string:
POST /index.php HTTP/1.1\r\nHost: www.example.com\r\n\r\n\r\nusername=bob&password=mypassword
The trick then is to figure out how your login page works and if there are subsequent messages after a successful login. If you capture the server side HTTP dialog you should see all of this. Then it's relatively simple to craft a cURL script in an external monitor, or if the login is simple, directly in the HTTP monitor in the GUI.
Doesn't the log-in require SSL?
That shouldn't matter.
It might matter - depends on the monitor config.
Exactly - as long as it's configured properly. However, generally there are different pools for 80 and 443 and you can't use the same monitor. Since I wasn't sure Angelo was aware of that I figured I'd point it out.