Re: libwww-perl-5 and ftp mode
Gisle Aas (aas@bergen.sn.no)
Sat, 06 Jul 1996 12:42:50 +0200
In message <ae0306ac@pjstoaster.pg.md.us>, Paul Schinder writes:
> I had some time this long weekend to get libwww-perl-5.00 working under
> the alpha of MacPerl which brings MacPerl up to 5.002. I'll post a
> message later with the gory details (actually very few changes need to
> be made) after I've had a chance to test everything out, but I've been
> able to make both ftp and http requests succesfully.
Good to hear.
> One question about ftp mode. I grabbed a file which LWP decided to
> download binary. After the data was collected, we come to (around line
> 149; my line numbers might be slightly different at this point from the
> distribution and I don't have a pristine copy available):
>
> if ($data->close != 2) {
>
> which, if I've followed the code in Net::FTP properly gets its value
> from the following line in Net::FTP::dataconn::close
>
> $ftp->status == CMD_OK;
>
> How can $data->close ever be 2?
Perhaps something changed in Net::FTP? Net::FTP 1.18 used to let
$ftp->response() be the return value from $data->close().
Regards,
Gisle.