Página 1 de 1

Help, WWW::Mechanize is not working!

NotaPublicado: 2007-08-20 00:10 @048
por MarkRolsen
Hello!
I want to login into my favorite forum automatically and I have a code (the login and password are existed):
Sintáxis: [ Descargar ] [ Ocultar ]
Using perl Syntax Highlighting
#!/usr/bin/perl

use WWW::Mechanize;
$mech = WWW::Mechanize->new();
$mech->get('http://www.alessonislearned.com/phpBB/login.php');

my $res = $mech->submit_form(
    with_fields => {
                    username => 'markrolsen',
                    password => '08082006',
                    autologin=> 'on',
                    },
    button      => 'login',
);
my $output_page = $mech->content();
print "Content-Type: text/html\n\n";
print "$output_page";
 
Coloreado en 0.003 segundos, usando GeSHi 1.0.8.4

But it doesn’t work. Let me know where is a mistake? I get

You have specified an incorrect or inactive username, or an invalid password

Sorry but I don’t speak Spanish.

NotaPublicado: 2007-08-20 04:32 @231
por explorer
Welcome to Perl en Español's forum.

I tried it, and it worked perfectly.

Please, edit your message and change your password!!!