in reply to Re^2: using LWP::Simple to fetch binary file (gnu zip)
in thread using LWP::Simple to fetch binary file (gnu zip)
The problem is you are calling a function as a method:
$hstatus = LWP::Simple->getstore ($text, $filename);
Change that to:
$hstatus = getstore ($text, $filename);
And it will work.
Effectively you are calling the function with the string 'LWP::Simple' as the first argument where it is expecting a URL. It tries to parse that to discover the protocol (http://, https://, ftp:// etc.) that it should use and doesn't find anything it recognises, so it return 501-Not Implemented.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using LWP::Simple to fetch binary file (gnu zip)
by Largins (Acolyte) on Jan 25, 2012 at 21:52 UTC |