Net::FTP problem



The following code is generating the error: can't connect (in the code
below) I'm guessing the FTP is sending the username and hostname
separated by @ instead of sending just the host name followed by user
name and password and commands. It worked fine for some time but now
quit on me. Thanks for any of your help.

sub get_ftp_handle {
my($self, $ftp_host, $ftp_user, $ftp_pwd)=@_;

my $ftp_site = $ftp_host || "storm";
my $ftp_pass = $ftp_pwd || "pqww2o4";
$ftp_user ||= "qauser";

my $ftp = Net::FTP->new($ftp_site) || do {
warn "$ftp_user\@$ftp_site: can't connect\n";
return -1;
};
$ftp->login($ftp_user, $ftp_pass) || warn "$ftp_user\@$ftp_site:
can't login\n";
$ftp->binary();
return $ftp || die("cannot open ftp connection");
}

.



Relevant Pages

  • Re: FTP on IIS6.0 Not Working
    ... > 220 Microsoft FTP Service ... > 331 Password required for username. ... > 200 PORT command successful. ... > 150 Opening ASCII mode data connection for /bin/ls. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP on IIS6.0 Not Working
    ... 220 Microsoft FTP Service ... 331 Password required for username. ... 200 PORT command successful. ... 150 Opening ASCII mode data connection for /bin/ls. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: General setup problem
    ... account, and it will not let me on. ... Even with anonymous ftp, you still need to enter username as ... My goal is to creat a FTP site that would require domain user ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Please help a novice..!!
    ... > 1) Create the username you want to use. ... > The important part of this step is that the virtual directory name MUST ... > you want to allow both read and write access via FTP. ... >> Mr. Smith ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Help setting up Samba
    ... Currently the Fedora machine has an account for a single ... names (the doc suggests choosing the 'ftp' username). ... Enterprise Technology Solutions, TD Bank Financial Group ...
    (comp.os.linux.questions)