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.