Compression Property  
 

Set or return if data compression should be enabled.

Syntax

object.Compression [= { True | False } ]

Remarks

The Compression property is used to indicate to the server whether or not it is acceptable to compress the data that is returned to the client. If compression is enabled, the client will advertise that it will accept compressed data and the server will decide whether a resource being requested can be compressed. If the data is compressed, the control will automatically expand the data before returning it to the caller.

Enabling compression does not guarantee that the data returned by the server will actually be compressed, it only informs the server that the client is willing to accept compressed data. Whether or not a particular resource is compressed depends on the server configuration, and the server may decide to only compress certain types of resources, such as text files. Disabling compression informs the server that the client is not willing to accept compressed data; this is the default.

This property value is only meaningful when downloading files from an HTTP server that supports file compression. It has no effect on file uploads or file transfers using FTP.

Data Type

Boolean

See Also

GetData Method, GetFile Method