![]() ![]() If set to zero then data transfers will be done using active mode. Passive - If set to a non-zero value then all data transfers will be done using passive mode. Timeout - Set a timeout value in seconds (defaults to 120)ĭebug - debug level (see the debug method in Net::Cmd) You can use SSL arguments as documented in IO::Socket::SSL, but it will usually use the right arguments already. SSL_* - SSL arguments which will be applied when upgrading the control or data connection to SSL. ![]() SSL - If the connection should be done from start with SSL, contrary to later upgrade with starttls. Port - The port number to connect to on the remote machine for the FTP connection For a list of permissible types, see the description of ftp_firewall_type in Net::Config.īlockSize - This is the block size that Net::FTP will use when doing transfers. This can be overridden by an environment variable FTP_FIREWALL_TYPE. This kind of setup is also referred to as an ftp proxy.įirewallType - The type of firewall running on the machine indicated by Firewall. If specified, and the given host cannot be directly connected to, then the connection is made to the firewall machine and the string is appended to the login identifier. This can be overridden by an environment variable FTP_FIREWALL. The "host" method will return the value which was used to connect to the host.įirewall - The name of a machine which acts as an FTP firewall. It may be a single scalar, as defined for the PeerAddr option in IO::Socket::INET, or a reference to an array with hosts to try in turn. %options are passed in a hash like fashion, using key and value pairs. ![]() If $host is not given then it may instead be passed as the Host option described below. $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 (depending on avaibility) of IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET. And with IO::Socket::SSL installed it provides support for implicit FTPS and explicit FTPS as defined in RFC4217. If IO::Socket::IP or IO::Socket::INET6 is installed it also provides support for IPv6 as defined in RFC2428. It provides wrappers for the commonly used 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 |