IHTTPTransportAdv2::Option Property
[propget] HRESULT Option([in] BSTR optionName, [out, retval] VARIANT * pVal);
[propput] HRESULT Option([in] BSTR optionName, [in] VARIANT val);
Get or sets a named property for the HTTP transport.
Valid option names are
- compression.enabled - compress the outgoing SOAP message, defaults to false
- compression.level - alter the level of compression, trades processing time vs message size, defaults to -1 (automatic), valid values are 0 (No Compression), 1 (Best speed), through to 9 (Best compression)
- compression.method - chooses the compression method used to compress the outgoing message, defaults to DEFLATE, valid values are DEFLATE or GZIP
- compression.accept - controls whether the Accept-Encoding header appears in the request headers indicating that we can de-compress the response from the server, default is true
- redirects.max - how many redirects to follow before raising an error, defaults to 5
- redirects.onpost - should we follow redirects when doing an HTTP POST ?, defaults to false
Return Values
a HRESULT code
Sample Code
set t = CreateObject("PocketSOAP.HTTPTransport")
' compress the outgoing message
t.option("compression.enabled") = true
' rest of code goes here
See Also
The IHTTPTransportAdv2 Interface |
Copyright
Copyright © Simon Fell, 2000-2004. All rights reserved.