[SP-pm] Deveria Funcionar?
Wendel Scardua
wendelscardua at gmail.com
Sun Sep 14 13:10:31 PDT 2008
Em vez desse negócio de tentar passar o cookie,você não poderia tentar
entrar no site via usuário e senha ?
Eu faria assim:
-----------------8<---------------------------
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new;
$mech->get('http://www4.eniac.com.br/eniacvirtual/servicos/vtl/login.jsp');
$mech->submit_form(with_fields => { usuario => 'usuario', senha => 'senha' }
);
print $mech->content;
exit 0;
----------------->8---------------------------
O WWW::Mechanize se vira pra guardar histórico, cookies, etc, como um
browser normal.
Dê uma olhada em perldoc WWW::Mechanize , é uma mão na roda pra navegar em
páginas, seguir links, preencher forms, etc.
[]s
Wendel
2008/9/14 Daniel de Oliveira Mantovani <daniel.oliveira.mantovani em gmail.com>
> Tenta para você ver, pegar as informações:
> http://www4.eniac.com.br/eniacvirtual/servicos/vtl/login.jsp
>
>
-------------- Pr?xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20080914/c87982bf/attachment.html>
More information about the SaoPaulo-pm
mailing list