Livecode Wiki
Advertisement

Switches between active and passive mode for FTP transfers.

Syntax:

libURLSetFTPMode {"active" | "passive"}

Examples:

libURLSetFTPMode "passive"
libURLSetFTPMode (the hilitedButtonName of group "Mode")

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"

The libURLSetFTPMode command is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the Standalone Application Settings window, make sure "Internet Library" is selected in the list of script libraries.

See: Internet library

See Also: libURLftpUpload Command, libURLSetFTPStopTime Command

Advertisement