Sorry, here it is
Thanks! output:my $mech = WWW::Mechanize->new(); print "Accessing $url\n"; $mech->get($url); print "Downloading the file..."; $mech->click_button (value => "TAB"); $mech->save_content( $full_path ); print "Done.\n";
If I hash out the code related to the button the main mage is saved without problem.Accessing http://spiedigitallibrary.org/ebooks/spies/kbart?isAuthorize +d=no Downloading the file...Can't call method "header" on an undefined valu +e at /exlibris/sfx_ver/app/perl-5.10.1/lib/site_perl/5.10.1/WWW/Mecha +nize.pm line 2381.
In reply to Re^2: Using Mechanize to click a button
by dindia
in thread Using Mechanize to click a button
by dindia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |