我们使用 FTP 将产品源传输到我们的 FTP 服务器。
我想了解 FTP 中 STOR
和 PUT
命令之间的区别。你能帮我理解这一点吗?
最佳答案
STOR
是用于上传文件的 FTP 协议(protocol)命令。
PUT
(或者更确切地说 put
)是命令行 FTP 客户端(例如内置 Windows ftp.exe
、 WinSCP 或常见 *nix ftp
)中的常用命令正在上传文件。
当您使用put
时FTP 客户端中的命令,它向服务器发出一系列 FTP 协议(protocol)命令,其中最重要的是 STOR
.
来自 Windows ftp.exe
的示例(使用 -d
调试开关):
ftp> put test.txt
---> PORT 10,1,2,3,194,139
200 Port command successful
---> STOR test.txt
150 Opening data channel for file upload to server of "/test.txt"
226 Successfully transferred "/test.txt"
ftp: 3 bytes sent in 0.01Seconds 0.33Kbytes/sec.
ftp>
关于windows - FTP STOR 和 PUT 命令之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25868562/