Thanks bogs for your reply.
From the examples you've listed, the command tsNetGet was used to get the directory list. There's a setting "use_ssl" for FTPS explicit connection. However, ours is FTPS implicit connection. Nonetheless, I tried it but it failed, see code below. How can we set it to implicit connection? I listed below all the setting available for tsNetGet.
Code: Select all
-- Enable TLS for explicit FTPS
put true into tSettings["use_ssl"]
put "ftps://username:password@ourftps .ourftpsserver. com:990/folder/" into ftpfolder
put tsNetGet("1", ftpfolder, "", "transferComplete", tSettings) into tResult
The settings array can consist of the following elements (not all of the settings make sense for every possible transfer type):
"use_ssl": Set to true to connect using Transport Layer Security (TLS) for SMTPS and FTPS (explicit) connections.
"no_transfer": Set to true to connect to the server but not perform any transfer.
"no_reuse": Set to true to specify that the connection to the server should be disconnected and not left open for any future connections.
"fail_on_http_error": Set to true to specify that HTTP status codes greater than 400 should be considered an error.
"force_basic_auth": Set to true to force HTTP basic authentication rather than allow tsNet to detect what authentication methods are supported by the server.
"force_digest_auth": Set to true to force HTTP digest authentication rather than allow tsNet to detect what authentication methods are supported by the server.
"save_sent_headers": Set to true to specify that external should store a copy of all the headers that it sends to the server. This must be set to true to use the tsNetRetrSentHeaders function.
"username": Set to a string containing the username to be used in any authentication requests from the server.
"password": Set to a string containing the password to be used in any authentication requests from the server.
"ssh_private_key": (Business Edition only) Set to the private key file (including full system path) to be used in SFTP transfers.
"ssh_passphrase": (Business Edition only) Set to the passphrase for any included private key.
"ssh_host_public_key": Set to the 128 bit MD5 checksum of the remote host's public key. The connection will be rejected unless they match.
"proxy_headers": Set to a list of headers (one per line) that should be sent to any proxy server that is being used.
"pre_commands": (Business Edition only) Set to a list of raw FTP/SFTP commands (one per line) that should be executed on the server prior to any transfer.
"post_commands": (Business Edition only) Set to a list of raw FTP/SFTP commands (one per line) that should be executed on the server directly after any transfer.