FTPConnection.Default

Syntax:

New FTPConnection(<Server>, <Port>, <UserName>, <UserPassword>, <Proxy>, <PassiveConnection>, <Timeout>, <SecureConnection>)

Parameters:

<Server> (required)

Type: String.
Connection server.

<Port> (optional)

Type: Number.
Connection server port.
Default value for FTP connections is 21, for secure FTPS connections - 990.
Default value: default port for the protocol.

<UserName> (optional)

Type: String.
Name of a user on the specified server.

<UserPassword> (optional)

Type: String.
Password for a user on the specified server.

<Proxy> (optional)

Type: InternetProxy.
Proxy used to connect to server.
The FTPConnection object must be used only with "FTP over HTTP" feature.
If the proxy server of native FTP type is specified, then the error is raised when accessing it.

<PassiveConnection> (optional)

Type: Boolean.
Defines the type of ftp-connection.
Default value: False.

<Timeout> (optional)

Type: Number.
Timeout for setting the FTP connection and executing the FTP operations (in seconds). 0 - do not set the timeout.
Default value: 0.

<SecureConnection> (optional)

Type: OpenSSLSecureConnection; Undefined.
Secure connection object for FTPS connection if specified.
Default value: Undefined.

Description:

Creates object FTPConnection.

    

1C:Enterprise Developer's Community