Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: zabbix web scenario Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
fbertasso
Newbie
Newbie


Joined: 27 June 2013
Location: Brazil
Online Status: Offline
Posts: 18
Posted: 05 October 2013 at 10:46am | IP Logged Quote fbertasso

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 View fbertasso's Profile Search for other posts by fbertasso
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 06 October 2013 at 11:24pm | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide