Bugzilla – Bug 493
LWP & FTP
Last modified: 2008-12-18 11:51:31 UTC
I would like to request that LWP support FTP, as it's supposed to. It appears that Net::FTP would have to be included with slimserver, as it is being used from LWP::Protocol::ftp. The actual error I get is... Error #501 -> Can't locate object method "new" via package "LWP::Protocol::ftp" ...from the following code... my $url='ftp://username:password@serverhostname/subdir/filename'; my $request=HTTP::Request->new(PUT => $url,undef,$filetooutput); my $response=$ua->simple_request($request); if($response->is_error()) { Log("Error #".$response->code." -> ".$response->message); return(0); } Log($response->content); If you look in LWP::Protocol::ftp, it actually tries to use Net::FTP which is not included with slimserver, so it may be just a case of including that, but I'll leave that for you. If I figure it out anytime soon, I'll update this bug with what I find. I was asked to file this bug by Dean Blackketter. Thank you Dean!!!
Our copy of LWP has been updated, but I"m not sure it's appropriate to include Net::FTP at this time. A good solution now would be to include it in your plugin directory.
Routine bug db maintenance; removing old versions which cause confusion. I apologize for the inconvenience.