|
|
|
|
|
FTPConfigure (Function) In french: FTPParamètre
Warning
From version 28, FTPParameter is kept for backward compatibility. This function has been replaced with FTPConfigure.
Modifies the behavior of standard FTP functions.
FTPConfigure(ftpConfigureMode, 1)
FTPConfigure(ftpConfigureMode, 0)
Syntax
FTPConfigure(<Option> , <Option value>)
<Option>: Integer constant Option to define: | | ftpConfigureMode | Selects the FTP operating mode.- If <Option value> is set to 0, the FTP functions use the Windows "wininet" module, except for secure protocols (FTPIS, FTPES and SFTP). This is the default operating mode for FTP functions.
- If <Option value> is set to 1, the FTP functions use a native, Windows-independent implementation of FTP, with UTF-8 support.
Note: In this mode, FTPCommand is not supported. This mode is systematically used for secure protocols (FTPIS, FTPES and SFTP).
| ftpConfigureReuseConnection | Forces the use of the same FTP server connection between two requests. - If <Option value> is set to 0, the client/application opens a connection each time it sends a command, then closes it immediately.
- If <Option value> is set to 1 (default), the client/application opens a connection when it sends the first command, and keeps this connection open as long as the server and client are exchanging data. After a given period of inactivity, the connection is automatically closed. This connection will be automatically reopened when the next command is executed, with no user action required.
| ftpesConfigureSecureMode | Sets the FTPES encryption mode.- If <Option value> is set to 0, the encryption is applied to FTP data and commands. This is the default mode for functions in FTPES.
- If <Option value> is set to 1, the SSL encryption is applied only to FTP commands. This mode may be required for some FTPES servers.
In previous versions, this constant corresponds to "ftpesParameterSecureMode". |
<Option value>: Integer New value of the option. Remarks By default, WLanguage FTPxxx functions use the Windows API FTP functions (WININET.DLL). In Windows 8.1, these APIs do no longer return the expected results: - transfer not completed,
- "unable to modify the directory to.".
While waiting for the standard FTP functions to be restored by Windows Update, WLanguage FTPxxx functions can be modified so that they no longer use Windows API FTP functions. To do so, insert the following call in the FTP transfer process, before the existing call to FTPConnect: FTPConfigure(ftpConfigureMode, 1)
Note: FTPConfigure applies to all WLanguage FTPxxx functions, except for FTPCommand. If necessary, this function can be replaced with FTPSend or FTPGet. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|