Author |
|
fbertasso Newbie

Joined: 27 June 2013 Location: Brazil
Online Status: Offline Posts: 18
|
Posted: 05 October 2013 at 10:46am | IP Logged
|
|
|
Hi,
I'm trying to configure Afterlogic Webmail using Web Scenario on Zabbix. It means I could simulate an authentication in order to monitoring some delay or even service downtime.
What I need is to understand the POST data I need to send to index.php - From tcpflow I extracted the following string:
Action=Login&Email=operacao%40mailserverpro.com.br&IncLogin=&IncPassword=XXXXXX&SignMe=1&Token=c04a27995b02f4eddgba4acdee81a7d9faa
I understood the Token is obtained from a cookie. Zabbix can maintain cookies and follow http redirects, but I'm afraid it couldn't get the cookie, extract the string and pass it through POST data.
Do you have any other idea how can I login into webmail using just login and password data POST ?
Thanks,
Fernando
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6136
|
Posted: 06 October 2013 at 11:24pm | IP Logged
|
|
|
Hello,
To to log in using POST request directly, you need to use API sample for logging in, see this documentation page. Basic example there will only require a few changes; instead of supplying $sEmail and $sPassword directly in the code, use something like:
Code:
$sEmail = $_POST["email"];
$sPassword = $_POST["password"]; |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|