Click or drag to resize

CFtp.Open Method

X#
Initialize an application's use of the Win32 Internet functions.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Open(
	nFlags,
	xProxy,
	aProxyByPass
) AS USUAL CLIPPER
Request Example View Source

Parameters

nFlags (Optional)
Type: Usual
Flag that indicates various options affecting the behavior of the methods. It can be a combination of these values: INTERNET_FLAG_OFFLINE Satisfy download operations on this handle through the persistent cache only. If the item does not exist in the cache, the method returns an appropriate error code. INTERNET_FLAG_ASYNC Future operations on this handle may fail with ERROR_IO_PENDING.
xProxy (Optional)
Type: Usual
String containing the name of the proxy server to use if proxy access was specified. If this parameter is NIL, the function reads proxy information from the registry.
aProxyByPass (Optional)
Type: Usual
Array with host names or IP addresses, or both, that are known locally. Requests to these names are not routed through the proxy. The strings can contain wildcards, such as {'157.55.*', '*int*'}, meaning any IP address starting with 157.55, or any name containing the substring 'int', will bypass the proxy. If this array contains the '<local>' string as the only entry, the function bypasses any host name that does not contain a period. For example, 'www.cai.com' would be routed to the proxy, whereas 'internet' would not. If this parameter is NIL, the function reads the bypass list from the registry.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
This method initializes internal data structures and prepares for future calls to CFtp methods. It does not have to be called explicitly, because the CFtp:ConnectRemote() method internally calls this method, if necessary.
See Also