wodHttpDLX ActiveX Control - Compression Property
      
 

Description

Determines if compression is enabled.


Property type

A Boolean value.  


Syntax

object.Compression [= value]



The Compression Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodHttpDLX.
value A Boolean value.

Remarks

When Compression property is set, wodHttpDLX will send appropriate headers (Accept-Encoding header) to the server allowing it to return compressed response - either GZIP or ZLIB compressed. If server supports these methods (for example, www.google.com does!), returned response may be up to 80% smaller than original. When wodHttpDLX receives such response, it will write uncompressed data to Response.Body property.

When compression is set, it is possible that Progress event and Response.Length property shows invalid information. It will show information about compressed content, not the original one. This is normal, since wodHttpDLX cannot know size of the resource in uncompressed mode. You should check length of returned resource by checking size of the file pointed by Response.Filename property, or get length of Response.Body property.