[ale] OT: perl https download script?

Mike Fletcher fletch at phydeaux.org
Thu Jul 26 09:21:55 EDT 2007


Robert L. Harris wrote:
> Seems to be more complex.  Web form handles the login, not a pop up.
>   

If it's a form you may find WWW::Mechanize easier to use than trying to 
roll your and doing your own cookie keeping.  Mechanize acts like a 
scriptable browser, letting you grab pages and fill-in and submit forms 
programatically.  Something like this is just a matter of grabbing the 
login page, submitting the username and password on the form, then 
fetching the page you want to save.


See the perldoc for links to several articles on how to use Mechanize:

http://search.cpan.org/~petdance/WWW-Mechanize-1.30/lib/WWW/Mechanize.pm#ARTICLES_ABOUT_WWW::MECHANIZE




More information about the Ale mailing list