in reply to LWP and Mechanize

"stopped working"??

Replies are listed 'Best First'.
Re^2: LWP and Mechanize
by LanX (Saint) on May 21, 2022 at 20:46 UTC
    OK let's do the OP's homework:

    Running that script leads to a 403 Forbidden while the url can be opened via FF.

    FWIW: I changed the UserAgent to the one from FF but no avail.

    • Maybe missing HTTPS certificate?
    • Maybe some more elaborate bot detection?
    • Maybe ...
    Anyway not a Perl problem, changing the URL to "https://perlmonks.org/" works.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Re^2: LWP and Mechanize
by perlmike (Novice) on May 21, 2022 at 20:07 UTC

    Yes, I could use the code to download files last year, but I couldn't download any files today. Not sure what's wrong.