• Publicidad

Help, WWW::Mechanize is not working!

Aquí encontrarás todo lo que sea específicamente acerca de módulos de Perl. Ya sea que estás compartiendo tu módulo, un manual o simplemente tienes una duda acerca de alguno.

Help, WWW::Mechanize is not working!

Notapor MarkRolsen » 2007-08-20 00:10 @048

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.
MarkRolsen
Perlero nuevo
Perlero nuevo
 
Mensajes: 1
Registrado: 2007-08-20 00:04 @044

Publicidad

Notapor explorer » 2007-08-20 04:32 @231

Welcome to Perl en Español's forum.

I tried it, and it worked perfectly.

Please, edit your message and change your password!!!
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España


Volver a Módulos

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados