Switches between active and passive mode for FTP transfers.
# Metadata
Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1.1 Security: network
# Syntax
libURLSetFTPMode {"active" | "passive"}
# Examples
libURLSetFTPMode "passive"
libURLSetFTPMode (the hilitedButtonName of group "Mode")
# Description
Use the libURLSetFTPMode command to improve performance with FTP servers that require active mode.
For most FTP servers, passive transfer mode will work without a problem. However, a few servers require transfers to be made in active mode. If you are having trouble with ftp commands with a particular server, try setting the mode to "active".
The FTP mode is set to passive when the application starts up. To use active mode exclusively, execute the following statement before making any ftp transfers:
libURLSetFTPMode "active"
>*Important:* The libURLSetFTPMode command is part of the > Internet library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. In the Inclusions pane of the > Standalone Application Settings window, make sure the "Internet" > script library is selected.
# Tags
# See
- **keyword:** ftp - **message:** startup, openBackground, preOpenStack, openStack, preOpenCard - **command:** libURLftpUpload, libURLSetFTPStopTime - **glossary:** command, main stack, handler, message, group, standalone application, Standalone Application Settings, server, application, LiveCode custom library - **library:** Internet library, library