Bug 493 - LWP & FTP
: LWP & FTP
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Plugins
: 5.x or older
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-10 16:30 UTC by Danny Rego
Modified: 2008-12-18 11:51 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Rego 2004-08-10 16:30:10 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!!!
Comment 1 Blackketter Dean 2004-08-12 10:26:34 UTC
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.
Comment 2 Chris Owens 2008-12-18 11:51:31 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.