I want to login into my favorite forum automatically and I have a code (the login and password are existed):
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";
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.