VB programmer's FTP Program Guide 1.5-Other FTP Support Commands

zhaozj2021-02-08  455

Tickets: Other FTP Support Commands: Qianqian Support Command You can use the help command to get the list of commands supported by your FTP program, as shown in Figure 6.

Figure 6 Help Command FTP> HELP

Commands May Be Abbreviated. Commands Are:

DELETE LITERAL PROMPT Send

DEBUG LS PUT STATUS

Append Dir Mdelete PWD TRACE

ASCII Disconnect Mdir Quit Type

Bell Get Mget Quote User

Binary Glob Mkdir Recv Verbose

Bye Hash MLS Remotehelp

CD Help MPUT RENAME

Close LCD Open RMDir

FTP>

End Session In the FTP prompt, enter BYE to end the session. FTP> BYE

Others explain that you have commands you entered to the FTP program and the FTP actual transfer to the FTP server. For example, when you enter a Dir command, the FTP program is actually transmitted to the FTP server is the list command. The ftp protocol will be referred to as mentioned below, unless otherwise stated. In FTP, port 21 (control connection) will be used to transfer commands; and another port is used to transmit data, the default is port 20. However, you can also use other ports, which makes programming a bit complicated. Connecting the FTP server receives the initial connection at the 21st port and keeps the open state, this connection will be used to process the FTP command; this is different from HTTP, HTTP is a connection protocol, each time you reconstruct the connection. Another independent connection is used to transmit data. These two connects are called control connectivity and data connection, for example, when to download a file, the client usually sends a port command, accepts the connection at the 20 port, then use the retr command to tell the server to send file. The server sends data and then close the connection. Another client available command is PSAV (represent passive mode), and the client tells the server to listen for a specific port. Then connect to that port for data connection. The author prefer to use passive mode because you don't have to accept one connection. If you want to use the port command, it is best to open the No. 20 port or the available port of 1024, and then send a port command to the server. 1-1024 The port is reserved inside the TCP. The FTP command FTP uses a series of simple commands such as LIST or RETR to complete different tasks. Each FTP command ends with CR / LF (Enter). (Thousands of VB stations are reproduced, please keep this information)

This is a work I have translated more years ago, please indicate anything wrong. . . . Qianqian (Thousandvb@yeah.net)

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

New Post(0)