ftp_logon

Example: ftp_logonFTP Vuser Functions (FTP)

Performs a login to an FTP server.

int ftp_logon( char *transaction, char *url, [attributes,] LAST );

Function objFTP.logon( transaction as String, url as String, ByVal attributes As Variant, LAST ) as Integer    ` for VB Script

transactionA transaction name for this step. To instruct VuGen not to create a transaction for this step, use a NULL string, "".
URL  The URL of the FTP server: "URL=ftp path" The ftp path should have the following format: ftp[s]://[username:[password]@][server[:port]]The use of ftps protocol indicates that the control connection is protected by SSL. However, even if the protocol is ftp, the control connection may be still SSL protected by using AUTH TLS (or similar) attributes
attributesAn optional comma-separated list. The following attributes are supported:"LocalAddr=<local_ip:port> A local address for IP spoofing.
"LocalAddressIndex=<number> The index of the local address for IP spoofing.
"ClientCert=<path> The path to the client certificate pem file.
"ClientKey=<path to private key pem file.
"ClientPassword=<password> For the private key.
"ClientCiphers=<c1[:c2][...<:cN]> A colon-delimited list of the client ciphers.
"CertificateAuthority=<directory> The directory containing the certificates of authority.
"AUTH TLS" Activates SSL on the control connection.
"AUTH TLS-C" Activates SSL on the control connection.
"AUTH SSL" Activates SSL on the control connection.
LAST A marker indicating the end of the argument list.

The ftp_logon function performs a login to an FTP server.

This function is for use with global sessions. For multiple sessions, use the ftp_logon_ex function, which allows you to specify a session identifier.

Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

Parameterization

Standard parameterization is not available for this function.