Sei sulla pagina 1di 27

FTP Palette

- 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.

Data content for file transfer

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).

Modes of Data Transfer

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.

Basic Steps to use FTP

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 Rename File


The FTP Rename File activity renames the specified file on the remote FTP server.

FTP DIR
The FTP DIR activity provides a listing of files in the specified directory of the FTP server.

FTP Get Default Directory


The FTP Get Default Directory activity retrieves the name of the current remote directory. The default remote directory is operating system-dependent and determined by the remote FTP server.

FTP Change Default Directory


The FTP Change Default Directory activity changes the current default directory on the remote machine to the specified directory path.

FTP Make Remote Directory

The FTP Make Remote Directory activity creates the specified directory on the remote FTP server.

FTP Remove Remote Directory


The FTP Remove Remote Directory activity deletes the specified directory from 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

2nd digit indicates function groupings.


0: Syntax (problem with command syntax). 1: Information (reply to help or status cmds). 2: Connections (problem with a connection). 3: Authentication (problem with login). 4: Unspecified. 5: File system (related to file system).

Access Control Commands

USER PASS CWD CDUP QUIT

specify user specify password change directory change directory to parent logout

Transfer Parameter Commands

PORT PASV TYPE MODE STRU

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

FTP Sys Type


The FTP Sys Type activity retrieves the FTP servers operating system type.

Questions?

Thank You

Potrebbero piacerti anche