FTP

FTP 125 Data Connection Open vs 213 File Status

FTP 125 (Data Connection Open) is a 1xx Positive Preliminary response, while 213 (File Status) is a 2xx Positive Completion response. 125 indicates that the data connection is already open and the transfer is beginning. No need to open a new data connection. In contrast, 213 means that file status reply. The server provides information about a specific file, typically its size or modification time.

Descrição

The data connection is already open and the transfer is beginning. No need to open a new data connection.

Quando você o vê

When the server reuses an existing data connection for a file transfer instead of opening a new one.

Como corrigir

No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection.

Descrição

File status reply. The server provides information about a specific file, typically its size or modification time.

Quando você o vê

After issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.

Como corrigir

No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.

Diferenças principais

1.

125 is a 1xx Positive Preliminary response, while 213 is a 2xx Positive Completion response.

2.

FTP 125: The data connection is already open and the transfer is beginning. No need to open a new data connection.

3.

FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.

4.

You encounter 125 when when the server reuses an existing data connection for a file transfer instead of opening a new one.

5.

You encounter 213 when after issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.

Quando usar qual

For 125 (Data Connection Open): No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection. For 213 (File Status): No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.

Saiba mais