NAME

Net::FTP - FTP Client class

SYNOPSIS

require Net::FTP;

$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","me@here.there");
$ftp->cwd("/pub");
$ftp->get("that.file");
$ftp->quit;

DESCRIPTION

Net::FTP is a class implementing a simple FTP client in Perl as described in RFC959

TO BE CONTINUED ...

METHODS

All methods return 0 or undef upon failure

* new($host [, option => value [,...]] )

Constructor for the FTP client. It will create the connection to the remote host. Possible options are:

Port	 => port to use for FTP connection
Timeout => set timeout value (defaults to 120)
Debug	 => debug level

* debug( $value )

Set the level of debug information for this object. If no argument is given then the current state is returned. Otherwise the state is changed to $valueand the previous state returned.

quit

Send the QUIT command to the remote FTP server and close the socket connection.

ascii/ebcdic/binary/byte

Put the remote FTP server ant the FTP package into the given mode of data transfer.

login([$login [, $password [, $account]]])

Log into the remote FTP server with the given login information. If no arguments are given then the users $HOME/.netrc file is searched for the remote server's hostname. If no information is found then a login of anonymous is used. If no password is given and the login is anonymous then the users Email address will be used for a password

authorise($auth, $resp)

This is a protocol used by some firewall ftp proxies. It is used to authorise the user to send data out.

rename( $oldname, $newname)

Rename a file on the remote FTP server from $oldname to $newname

AUTHOR

Graham Barr <Graham.Barr@tiuk.ti.com>

REVISION

$Revision: 1.17 $

Copyright (c) 1995 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.