Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Am i on the right track? Are there some websites that just won't allow this automation? Thank you very much for your timemy $url = "https://www.telecom.co.nz/xtralogin.fcc?TYPE=33554433&REALM +OID=06-0005cc45-3c3e-1f6c-93b5-80edbce40000&GUID=&SMAUTHREASON=0&METH +OD=GET&SMAGENTNAME=$SM$bPLaid7UiFr%2fcTQchTKdU5ckPa0CnhjCk2Zds2Wopak% +3d&TARGET=$SM$https%3a%2f%2fwww%2etelecom%2eco%2enz%2fjetstreamum%2fx +tra"; my $mechanize = WWW::Mechanize->new(autocheck => 1); $mechanize->cookie_jar(HTTP::Cookies->new); $mechanize->get($url); $mechanize->form_name('Login'); $mechanize->field('USER','digger'); $mechanize->field('PASSWORD','testpass'); $mechanize->click(); my $page = $mechanize->content; open (FH, ">usage.html"); print FH $page; close(FH);
Janitored by holli - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize HTTPS
by monarch (Priest) on May 26, 2005 at 08:13 UTC | |
|
Re: WWW::Mechanize HTTPS
by monarch (Priest) on May 26, 2005 at 08:42 UTC | |
by BigRare (Pilgrim) on May 26, 2005 at 13:38 UTC | |
|
Re: WWW::Mechanize HTTPS
by displeaser (Hermit) on May 26, 2005 at 07:11 UTC | |
by terce (Friar) on May 26, 2005 at 08:45 UTC |