moked has asked for the wisdom of the Perl Monks concerning the following question:
However, I get en error while running it:use WWW::Mechanize; use HTTP::Cookies; use Stream::Reader; $url="https://webmail.com/exchange"; my $username = "UserName"; my $password = "Password123"; my $mechanize = WWW::Mechanize->new(autocheck => 1); $mechanize->cookie_jar(HTTP::Cookies->new()); $mechanize->get($url); $mechanize->form_name('logonForm'); $mechanize->field(username => $username); $mechanize->field(password => $password); $mechanize->click(); $mechanize->get("https://webmail.com/exchange/username/Inbox/?Cmd=cont +ents&Page=1"); my $page = $mechanize->content();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WebMail login popup
by Corion (Patriarch) on Jun 01, 2009 at 14:49 UTC | |
|
Re: WebMail login popup
by dorward (Curate) on Jun 01, 2009 at 14:43 UTC | |
|
Re: WebMail login popup
by Errto (Vicar) on Jun 02, 2009 at 14:52 UTC |