You are here: Start » AVL.NET » Function Reference » System » FTP » AVL.Ftp_ReceiveString

AVL.Ftp_ReceiveString

Downloads a text string from a remote server using FTP (File Transfer Protocol).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void Ftp_ReceiveString
(
	string inHostName,
	string inFtpFilePath,
	NullableRef<string> inUsername,
	NullableRef<string> inPassword,
	bool inUsePassiveMode,
	int? inTimeout,
	bool inAllowUntrusted,
	NullableRef<string> inCaCertFile,
	out string outText
)

Parameters

Name Type Range Default Description
inHostNamestring\"ftp://\"URL address of the remote server. Default value: "ftp://".
inFtpFilePathstringLocation of the file on a remote server.
inUsernameAvlNet.NullableRef<string>User name needed to log in. Default value: atl::NIL.
inPasswordAvlNet.NullableRef<string>Password associated with a user name. Default value: atl::NIL.
inUsePassiveModeboolProtocol communication mode. May be necessary when using a firewall.
inTimeoutint?<0, INF>Request timeout in seconds. Default value: atl::NIL.
inAllowUntrustedboolFalseWhether or not to allow untrusted SSL certificates. Default value: False.
inCaCertFileAvlNet.NullableRef<string>File holding one or more certificates to verify the peer with. Default value: atl::NIL.
outTextstringText read from a remote server.

Errors

List of possible exceptions:

Error type Description
DomainError Empty ftp file path on input in Ftp_ReceiveString
DomainError Empty host name on input in Ftp_ReceiveString

Function Overrides

See also