Hello, i'm wondering if there is any good way to monitor if logins are successful against groupwise webaccess ? I have tried to use wget to post username and password but i only get the login page downloaded, i would like to
use wget or curl to login and if i download the right page i know logins are working correct. Here is my script used:

#!/usr/bin/perl

##### HERE IS THE LOGIN SEQUENCE, I DONT KNOW IF ALL THESE POST DATA IS NEEDED #####
my $output1 = `wget --save-cookies cookies.txt \ --keep-session-cookies \ --post-data 'POSTDATA=User.context=5db184ca9f62e1773ddbdadc1b3 9725d2d831e67&error=login&merge=webacc&action=User .Login&Url.hasJavaScript=1&Low.bandwidth=0&User.in terface=css&Timezone.Workstation.offsetAvailable=1 &Timezone.Workstation.gmtOffset=120&Timezone.Works tation.HasDaylight=1&Timezone.Workstation.IsDaylig ht=1&User.Theme.index=1&User.id=USER&User.password =PASSWORD&User.lang=sv&User.settings.speed=high&Us er.settings.save=on' \ https://webmail.domain.se/gw/webacc`;

##### THIS IS WHAT I USUALLY SEND WHEN LOGGED INTO WEBACCESS TO LIST MY MAILBOX #####
my $output2 = `wget --load-cookies cookies.txt \ https://webmail.domain.se/gw/webacc?User.context=5db184ca9f62e1773ddbdadc1b3972 5d2d831e67&action=Folder.List&merge=folder`;

print $output2;



Thx