Error getting tags :
error 404Error getting tags :
error 404 libURLftpCommand | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
libURLftpCommand
Basics
Expander triangle
Type
Function
Syntax
libURLftpCommand(ftpCommandLine,host[:port][,username[,password]])
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Network
Summary
Sends an FTP command to an FTP server.
Examples

put libURLftpCommand("PWD",ftp.example.org) into field "Directory"
get libURLftpCommand("SITE HELP",example.net:75,"root",field "password")

Additional Comments
Expander triangle

Use the libURLftpCommand function to communicate with an FTP server and perform tasks that are not implemented in the Internet library.

Parameters:

The ftpCommandLine is a string consisting of any valid FTP command and any parameters it requires.

The host is the IP address or domain name of the FTP server.

The port is the port number you want to connect to. If you don't specify a port, port 21 is used. (On most systems, port 21 is the FTP port.)

The username is the account name on the server. If you don't specify a username or password, the libURLftpCommand function uses the "anonymous" user name and a dummy password automatically, in accordance with the conventions for public FTP servers.

The password is the password to the username account.

Value:

The libURLftpCommand function returns a string with the result of the FTP command (if the server sends back a result) or an error message. An FTP server always begins its response with a three-digit code, followed by any other relevant information.

Comments:

The ability to send any FTP command to an FTP server is a powerful function that can enable you to provide full support for all FTP functionality in your application. To use it effectively, you must be familiar with FTP commands and responses and be able to properly construct an FTP command line.

Tip: To get general information about an FTPserver, issue the FTP "HELP" command:

answer libURLftpCommand("HELP",ftp.example.net)

For technical information about FTP server commands, see RFC 959 at <http://www.ietf.org/rfc/rfc959.txt>, particularly section 4.1.3.

Important! The libURLftpCommandfunction is part of the Internet library. To ensure that the function 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.

Note: When included in a standalone application, the Internet library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the libURLftpCommandfunction is not yet available. This may affect attempts to use this function in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the libURLftpCommandfunction can be used in any handler.

User Comments
Expander triangle