FTP difference between STOR and PUT command

Bourne picture Bourne · Sep 16, 2014 · Viewed 19.1k times · Source

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?

Answer

Martin Prikryl picture Martin Prikryl · Sep 16, 2014

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, 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>