Algo has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I try to save a file(pdf), using WWW::Mechanize to navigate trough a website , then click on a link which is in normal browser returns with a file and saved by the browser. I would like to do the same from my scipt. Could you give me an advise on this ? Many thanks, Algo Update: It turned out I need to call an onClick JS event, which is not supported in Mech, but in Mech::Firefox. Thanks for the reading. Algo

Replies are listed 'Best First'.
Re: called URL retuns with file
by hippo (Archbishop) on Oct 26, 2014 at 15:24 UTC
      I have tried that but it saves the actual page content. See my update regarding my findings. Thanks anyway fro your response !!! Algo