Options Property

Gets and sets the options for the current object.

Syntax

object.Options [= options]

The object is an expression that evaluates to a FileTransfer object. The property returns a long integer value.

Remarks

The Options property returns or modifies the options used for retrieving and sending files. The value is represented as one or more bit flags which may be combined using the logical or operator. The following options are defined:

Value Constant Description
1 fileOptionNoCache This instructs an HTTP server to not return a cached copy of the resource. When connected to an HTTP 1.0 or earlier server, this directive may be ignored.
8192 fileOptionSecureExplicit This option specifies that the client should use the AUTH server command to tell an FTP server that it wishes to explicitly negotiate a secure connection. This requires that the server support the AUTH TLS or AUTH SSL commands. Some servers may not require this option, and some may require the option only if a port other than 990 is specified. If this option is specified, the Secure property will automatically be set to True.

Data Type

Integer

Example

'
' The Ipswitch WS_FTP server supports explicit, secure connections
' using the AUTH command
'
FileTransfer1.Options = fileOptionSecureExplicit

See Also

Secure Property, Connect Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.