Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi monks
I am having problems fetching files from some sort of URIs. I used LWP::UserAgent (same problem) but now I changed to File::Fetch as it seems to me quite suitable for my task. I came out with this:
#!/usr/bin/perl use strict; use warnings; use File::Fetch; my $url=" http://www.ekey.net/downloads-475?download=2132cbe2-2fb1-eef +f-583c-50a39b6aba6c&name=v2_ITA_12-Seiter_Programm_1207_web.pdf"; print "Downloading $url\n"; my $ff = File::Fetch->new(uri => $url); my $where = $ff->fetch( to => "ekey corpus" ) or $ff->error;
The file definitivly exists in that location. Compy and paste in Firefox and you get promped to download the file (Firefox knows the file names starts after the last "=").
Any idea why this does no work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fetch Problem uri
by Perlbotics (Archbishop) on Jul 04, 2015 at 09:51 UTC | |
by Anonymous Monk on Jul 04, 2015 at 10:01 UTC | |
|
Re: Fetch Problem uri
by 1nickt (Canon) on Jul 04, 2015 at 10:08 UTC | |
by Anonymous Monk on Jul 04, 2015 at 12:10 UTC | |
by 1nickt (Canon) on Jul 04, 2015 at 14:45 UTC | |
by Anonymous Monk on Jul 04, 2015 at 16:00 UTC |