lv211 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use WWW::Mechanize; use HTTP::Cookies; my $email = " "; my $password = " "; my $url = "https://www.google.com/accounts/ServiceLoginBox?service=blo +gger&continue=http%3A%2F%2Fwww.blogger.com%2Floginz%3Fd%3Dhttp%25 +3A%252F%252Fwww.blogger.com&alwf=true&uilel=3&skipvpage=t +rue&rm=false&naui=8&showra=1&fpui=2&hl=en&nui +=1&naui=8&roec=Unknown&alwf=true&service=blogger& +continue=http%3A%2F%2Fwww.blogger.com%2Floginz%3Fd%3D%252Fstart&f +pui=2&rm=false&alinsu=1&uilel=3&hl=en&skipvpage=t +rue"; my $mech = WWW::Mechanize->new; my $cookie_jar = HTTP::Cookies->new( 'file' => 'c:/lwp_cookies.dat', ); $mech->agent('Mozilla/5.0(Windows; U; Windows NT 5.1; en-US) Gecko/200 +61206 Firefox/1.5.0.9'); $mech->cookie_jar($cookie_jar); $mech->get($url); $mech->set_fields( "Email" => "$email", "Passwd" => "$password", ); $mech->submit; print $mech->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize login problems
by naikonta (Curate) on May 28, 2007 at 01:21 UTC | |
|
Re: WWW::Mechanize login problems
by naikonta (Curate) on May 28, 2007 at 05:35 UTC | |
|
Re: WWW::Mechanize login problems
by neverminda (Novice) on May 28, 2007 at 04:34 UTC | |
|
Re: WWW::Mechanize login problems
by moritz (Cardinal) on May 28, 2007 at 12:24 UTC | |
|
Re: WWW::Mechanize login problems
by lv211 (Beadle) on May 28, 2007 at 21:42 UTC | |
by naikonta (Curate) on May 29, 2007 at 04:11 UTC |