Code follows.
#!perl # Automated navigation through web pages use strict; use warnings; use WWW::Mechanize; my $a = WWW::Mechanize->new( autocheck => 1, agent => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)' ); my $testpage = 'http://myprodportalv2.whatever.com:7778/portal/page?_p +ageid=33,30917,33_30962&_dad=puno2o&_schema=PORTAL_PUNO2O'; $a->get($testpage); $a->success() or do { ## This dumps an empty file open PAGE, '>failpage.html'; print PAGE $a->content; close PAGE; die 'Get failed: "'.$a->res->status_line."\" for\n".$testpage."\n +or ".$a->base()."\n"; };
In reply to Mechanize and "Not implemented" by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |