Dom Ago 19, 2007 11:10 pm
|
 |
MarkRolsen
Perlero Nuevo

|
Registrado: 19 Ago 2007
Mensajes: 1
|
|
| Help, WWW::Mechanize is not working! |
|
|
Hello!
I want to login into my favorite forum automatically and I have a code (the login and password are existed):
| Perl: |
#!/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";
|
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. |
|
|
|

Lun Ago 20, 2007 3:32 am
|
 |
explorer
Moderador

|
Registrado: 24 Jul 2005
Mensajes: 4092
Ubicación: Valladolid, España
|
|
|
|
|
Welcome to Perl en Español's forum.
I tried it, and it worked perfectly.
Please, edit your message and change your password!!! |
|
Powered by phpBB © 2001, 2005 phpBB Group
|