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?


In reply to Fetch Problem uri by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.