scarfguy has asked for the wisdom of the Perl Monks concerning the following question:
So close, but yet so far!
I try to download a .zip file from a site, which I navigated and logged in to, using WWW::Mechanize. The url ends with .../pluginfile.php/randomStuff/myFile.zip?forcedownload=1. If I navigate to this link by hand, a window opens and asks me where to save the file. This is the php stuff? How do I get past this window in my script?
I attempt to download the file with getstore($downloadLink, $fileName);. But instead of downloading the .zip file, it saves an html-file. :( . Any thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple trouble.
by haukex (Archbishop) on May 16, 2016 at 20:10 UTC | |
by scarfguy (Novice) on May 18, 2016 at 12:00 UTC | |
|
Re: LWP::Simple trouble.
by Anonymous Monk on May 16, 2016 at 20:12 UTC | |
by scarfguy (Novice) on May 18, 2016 at 12:15 UTC |