HOST is the name of the remote host to which an FTP connection is required. This is the constructor for a new Net::FTP object. This class does not support the EBCDIC or byte formats, and will default to binary instead if they are attempted. Byte format transfers the data as bytes, the values of which remain the same regardless of differences in byte size between the two machines (in theory - in practice you should only use this if you really know what you're doing). Binary (also known as image) format sends the data as a contiguous bit stream. EBCDIC indicates the file being transferred is in EBCDIC format. ASCII is the default type, and indicates that the sender of files will translate the ends of lines to a standard representation which the receiver will then translate back into their local representation. These are ASCII, EBCDIC, binary, and byte. The protocol also defines several standard translations which the file can undergo during transfer. This means that transferring remote file /path/to/file will try to put that file in /path/to/file locally, unless you specify a local file name. In this module, the same file name will be used for both local and remote if only one is specified. Each transfer involves a local file (on the client) and a remote file (on the server). The FTP protocol allows files to be sent to or fetched from the server. Communication is always initiated by the client, and the server responds with a message and a status code (and sometimes with data). The protocol defines a client (whose commands are provided by this module) and a server (not implemented in this module). It is a way of transferring files between networked machines. OVERVIEWįTP stands for File Transfer Protocol. The Net::FTP class is a subclass of Net::Cmd and IO::Socket::INET. It provides wrappers for a subset of the RFC959 commands. Net::FTP is a class implementing a simple FTP client in Perl as described in RFC959. Or die "Cannot change working directory ", $ftp->message Or die "Cannot connect to : die "Cannot login ", $ftp->message Net::FTP - FTP Client class SYNOPSIS use Net::FTP
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |