in reply to Perl script to download readable .pdf file.

I understand that you have already solved your problem. However, you should be aware that I had another problem with a nearly identical program. The site would not download copyrighted material to a 'browser' they did not recognize. The downloaded file actually was an html file containing the explanation (perl still thought it was pdf.)
Bill
  • Comment on Re: Perl script to download readable .pdf file.

Replies are listed 'Best First'.
Re^2: Perl script to download readable .pdf file.
by Anonymous Monk on May 06, 2017 at 12:41 UTC
    And the solution to that is to set $ua->agent to something the site recognizes, eg
    $ua->agent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gec +ko/20100101 Firefox/53.0');
      Thanks! To bad that I did not ask while the site was still in service. I had no idea that there was a solution so I gave up and downloaded the files by hand with my browser.
      Bill