Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
- Chitra
Outline
What is FTP? Types of Data Content. Modes of Transfer. Basic steps to use FTP connection. About the FTP Palette. FTP command. FTP Response.
FTP Activities
FTP FTP FTP FTP FTP FTP FTP FTP FTP FTP FTP FTP
Get Put Delete Rename Dir Get Default Directory Change Default Directory Make Remote Directory Remove Remote Directory Quote Sys Type Connection
What is FTP?
FTP (File Transfer Protocol) enables files to be transferred from one computer to another. FTP works on client/server principle. A client program (FTP command) enables the user to interact with a server in order to access information and services on the server computer. Files that can be transferred are stored on computers called FTP servers. To access these files, an FTP client program (FTP command) is used. FTP palette is used to issue FTP command.
There are two types data content for FTP file transfer: ASCII and binary. ASCII is used only for files saved in ASCII format (this includes Postscript files). There are 128 standard ASCII codes. Default is ASCII is default. Binary is used for files that are formatted and saved using a word-processing software like WordPerfect (.txt), spreadsheets (.xls), images (.jpg, .gif), and many executable programs (.exe) and videos (.avi).
There are two modes of transfer in FTP: Active (PORT) and Passive (PASV). For Active mode, PORT command is used to have the server connect to the client. For Passive mode, PASV command is used to have the client connect to the server. PASV would be preferred for data connection.
Connect to the FTP server. Navigate the file structure to find the file you want to transfer. Transfer the file. The specification of each step will vary, depending on the client program (FTP command) being used.
FTP Connection
The FTP Connection shared configuration resource describes a connection to an FTP server. FTP connections are used when configuring activities in the FTP palette.
FTP Put
The FTP Put activity issues an FTP put or mput command to the specified server. Using FTP command, one or more files can be placed on the remote sever.
FTP Get
The FTP Get activity issues an FTP get or mget command to the specified server. Using FTP Get command, one or more files from the remote server can be placed in local storage.
FTP Delete
The FTP Delete File activity issues an FTP delete or mdelete command to remove one or more files from the remote server.
FTP DIR
The FTP DIR activity provides a listing of files in the specified directory of the FTP server.
The FTP Make Remote Directory activity creates the specified directory on the remote FTP server.
FTP Quote
The FTP Quote activity sends an arbitrary FTP command to the FTP server. FTP commands are supported by using the Available Commands button on the FTP Connection shared configuration resource. FTP commands vary by operating system and by FTP version and configuration.
FTP Response
All replies are sent over control connection. Each command generates a server response: 3 digit status code, text message. Status code is used by programs, text is for humans. First Digit of Status code indicates type of reply. Second digit indicates function groupings. Third Digit indicates specific problem within function group.
Responses
First digit of status code indicates type of reply: 1: Positive Preliminary Reply (got it, but wait). 2: Positive Completion Reply (success). 3: Positive Intermediate Reply (waiting for more information). 4: Transient Negative Completion (error - try again). 5: Permanent Negative Reply (error cant do).
Responses
specify user specify password change directory change directory to parent logout
publish local data port server should listen data representation establish transfer mode establish file structure
Service Commands
RETR STOR STOU APPE ABOR PWD LIST retrieve file send file send file and save as unique send file and append abort previous service print working directory list of files over data
Questions?
Thank You