Function EN Version 5.00

@FTPNTGetLastResponseInfo

FTP

Syntax

@FTPNTGetLastResponseInfo(RetFNErrorNr;RetTEXTResponse);

Description

This @Function is available only on Windows!

Returns the last FTP server response.
This function is useful, for example, when @FTPNTGetLastError returns code 12003.
In this case, the FTP server response may help narrow down the problem.

Return parameter FN RetFNErrorNr:
The last FTP server code

Return parameter TEXT RetTEXTResponse:
The last FTP server response.

Example @FTPNTGetLastResponseInfo:

TEXTREMOTENAME:="";
TEXTLOCALPATH:="";
FNOVERWRITEPROTECT:=0;
@FTPNTGetfile(FTPNTHANDLE;TEXTREMOTENAME;TEXTLOCALPATH;FNOVERWRITEPROTECT);
@FTPNTGetLastResponseInfo(RetFNErrorNr;RetTEXTResponse);

Example FTP server response:

550 Prohibited file name: \Bilder\

In this case, the backslashes "\" in TEXT TEXTREMOTENAME are the problem.
The server can only handle slashes "/" in TEXT TEXTREMOTENAME!

Note : This text was machine-translated and may contain inaccuracies.