Posted on 2007-12-19 20:05:19-08 by akk
Error parsing 227-line on PASV command
I noticed a number of postings elsewhere detailing this error when connecting to a server that didn't respond with a nice 227-line on the PASV command. I'm connecting to a WS_FTP server and ran into the same error, and I've gotten around it by hacking FTPSSL.pm to read deeper into the stack of returned messages from the server using getline(). I'll spare the details because this may have already been addressed, but if anyone else is interested let me know... akk
Direct Responses: 8366 | Write a response
Posted on 2008-07-22 06:54:40-07 by viraj in response to 6729
Re: Error parsing 227-line on PASV command
Yes I got the same error and get through buy just ignoring the 227 server messages. Basically the module is looking for a 230 message with the passive command to run in on client server. My Hack is,

if ($msg =~ /(230)/i)
{
  while($msg !~ /(227)/i)
  {
    $msg = $self-<getline();
  }
}

If anyone found a better solution than this. Please let us know.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.