Help WWW:Mechanize or scripter

72 views
Skip to first unread message

Jerome SCHEVINGT

unread,
Mar 9, 2012, 1:57:23 AM3/9/12
to WWW::Mechanize users
Hi

i am search a solution for connect this web site with Merchanize:

https://www.operateurs.francetelecom.com/portal/espaceclient/divop

But all test failed,

# formulaire de login

$m->get('https://www.operateurs.francetelecom.com/portal/espaceclient/divop');
die $m->res->status_line unless $m->success;

$m->set_fields(
USER => $login,
PASSWORD => $password,
valider => Ok,
);
$m->click;
open (INFILE,">resultat.html");
print INFILE $m->content;
close (INFILE);


i test with WWW:Scripter, and failed too ..

anyone have a idea ?

in the resultat.html, i have in form:


<div class="formulaire">
<form action="#" id="identification" method="POST" name="identification"
onsubmit="return validateForm(true)">
<input name="target" type="hidden" value="">
<input name="smauthreason" type="hidden" value="">
<p>Identifiant</p>
<p><input class="type_text" id="USER" name="USER" size="30"
type="text"></p><br>
<p>Mot de passe</p>
<p><input class="type_text" id="PASSWORD" name="PASSWORD" size="30"
type="password"></p><br>
<p><input id="btnValider" name="valider"
src="/orangeportal/img/valider.gif" type="image"></p>
</form>
</div>

thanks for your help
jerome

bem

unread,
Mar 9, 2012, 12:38:44 PM3/9/12
to WWW::Mechanize users
Try to add this :

my $mech = WWW::Mechanize->new( autocheck => 1 );
$mech->ssl_opts(verify_hostname => 0);
$mech->cookie_jar(HTTP::Cookies->new);

You should install Crypt::SSLeay.

My 2 cents (d'euro !)

Jerome SCHEVINGT

unread,
Mar 10, 2012, 1:55:37 AM3/10/12
to www-mecha...@googlegroups.com
Le 09/03/2012 18:38, bem a �crit :

Dear ben,

Thanks but no change ;=) all time he said me
that enter your login and password

Best regards
Jerome

Reply all
Reply to author
Forward
0 new messages