What requests can an FTP client send?

Thursday evening, September 14, 2023


FTP clients can mainly send the following types of requests:

  • USER: Send username to log in to the FTP server.
  • PASS: Send password to log in to the FTP server.
  • CWD: Change the current working directory.
  • CDUP: Change to the parent directory. 
  • PWD: Query the current working directory.
  • LIST: Request a directory listing. 
  • NLST: Requests a list of directory names.
  • SIZE: Requested file size.
  • TYPE: Set the transmission mode, such as ASCII or binary.
  • PORT: Set the data connection port.
  • PASV: Requests the server to enter passive mode. 
  • RETR: Request to download a file.
  • STOR: Request to upload a file. 
  • DELE: Delete files.
  • RMD: Delete a directory.  
  • MKD: Create directory.
  • RNFR: Specifies the file to be renamed.
  • RNTO: Specify a new file name.
  • QUIT: Exit the FTP session.

These are standard request commands defined in the FTP protocol. The client can send these commands as needed to implement functions such as file management, uploading and downloading.
In addition, extension commands can also be defined to implement more advanced functions, but these are non-standard. A standard FTP client needs to support at least the above basic command set.

Guess you like

Origin blog.csdn.net/m0_61629312/article/details/132889554