Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP difference between STOR and PUT command

We use FTP for dropping the product feeds to our FTP server.

I wanted to understand the difference between the STOR and PUT command in FTP. Can you please help me understand this?

like image 672
Bourne Avatar asked Dec 20 '22 11:12

Bourne


1 Answers

The STOR is an FTP protocol command for uploading a file.

The PUT (or rather put) is a common command in command-line FTP clients (such as the built-in Windows ftp.exe, WinSCP, or a common *nix ftp) for uploading a file.

When you use the put command in an FTP client, it issues a sequence of FTP protocol commands to the server, out of which, the most significant one is the STOR.

An example from Windows ftp.exe (with -d debug switch):

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>
like image 118
Martin Prikryl Avatar answered Jan 08 '23 05:01

Martin Prikryl