Skip Menu |

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 61220
Status: resolved
Worked: 5 min
Priority: 0/
Queue: File-Fetch

People
Owner: BINGOS [...] cpan.org
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.24
Fixed in: (no value)



Subject: Cannot fetch HTTP URI that looks like directory
The following simple code fails: use File::Fetch; File::Fetch->new(uri => 'http://www.google.com/'); I get No 'file' specified at test.pl line 2 It is true that the URI ends in a slash, hence there is no "file" portion. But that should not prevent us from fetching the page (in HTTP, directories just act like normal pages). Perhaps you could allow the user to specify a filename manually, or you could use a default filename, like "index.html", like wget does.
This should be resolved now with: Changes for 0.36 Thu Jun 28 13:41:31 2012 ================================================= * Added 'file_default' option for URLs that do not have a file component (Andrew Kirkpatrick) Many thanks.