VB programmer's FTP program guide 1.6-server feedback

zhaozj2021-02-08  424

Ticket: Server Feedback Lord: Qianqian Server Feedback After sending the FTP command, you will receive a response from the server. The response information consists of 3 digit plus spaces plus a piece of text information. Figure 7 lists some response information. Complete description can refer to the RFC 959 document.

Figure 7 Return value. A restart label response (Restart Marker Reply).

It shows this:

Mark YYYY = MMMM

YYYY is a data stream tag that the user is handled, and the mmmm is a corresponding tag of the server (note the space between the tags and "=").

120 The service is ready for NNN minutes.

125 The data connection has been opened, and the transmission begins.

150 file status OK; will open the data connection.

200 command OK.

202 Commands are not implemented, and this site is excessive.

211 System status or system help response.

212 directory status.

213 file status.

214 Help information.

215 Name System Type.

220 Service is ready for new users.

221 Service Close Control Connection.

If you are right, you will launch login.

225 Data connection open, no data is transmitted.

226 Turn off the data connection.

The required file operation is complete. .

227 Enter Passive mode (H1, H2, H3, H4, P1, P2).

230 Users login and have been processed.

250 file operation action OK, complete.

257 "Pathname" has been created.

331 User Name OK, you need a password.

332 Need to log in to the account.

350 The file operation is delayed, further information.

421 Service is not available, close control connection.

This response may apply any directory when the service must be turned off.

425 Unable to open data connections.

426 Connection is closed; transmission abnormal abnormal stop.

450 The file operation that needs to be not accepted is not accepted.

The file is not available (for example, the file is busy).

451 Operation is aborted; local error occurred during processing.

452 Operation is not accepted.

System storage space is insufficient.

500 syntax errors, unrecognizable commands.

It may include an error such as too long.

501 Parameter grammatical error.

502 Command is not implemented.

503 Command order error.

504 Not implemented for this parameter command.

530 is not logged in.

532 Storage file requires an account.

550 The operation required is not accepted.

The file is not available (for example, the file is not found).

551 The operating exception is aborted; the page type is unknown.

552 The operating exception is aborted.

More than the storage allocation space (for the current directory or dataset).

553 The operation required is not accepted.

The file name is not allowed.

Return value category The number of returns each return value has a special meaning. The first digit has 5 values: 1 indicates an affirmative, preliminary answer (this command is accepted, and this is the first part of other servers to answer); 2 means a permanent affirmation answer; 3 means a middle level Affirmation, in this case, the server is waiting for further information; 4 indicates that the command is not accepted, and the required operation does not appear, and this may be temporary; 5 indicates an absolute failure. The second number represents the category of the answer: 0 represents a syntax error; 1 represents the information content; 2 indicates information about the transmission link; 3 refers to verification or account information; 4 is not used; 5 means information about the status of the file system. The third digit is then classified for the error. Figure 8 shows how to analyze a brief review of FTP reply values. If you want to discuss in detail, please refer to RFC 959.

Figure 8 explains the FTP return value. 1xx affirmative initial answer

2xx affirmation answer

3XX affirmation intermediate answer

4xx short negative completion answer

5xx permanent negative completion answer

X0X syntax error

X1X information

X2X connection

X3X verification and account

X4X does not specify

X5X file system

(Thousands of VB stations are reproduced, please keep this information)

转载请注明原文地址:https://www.9cbs.com/read-926.html

New Post(0)