IFPCHTTPCompressionConfiguration::UnsupportedHeaders property

Applies to: desktop apps only

The UnsupportedHeaders property gets an FPCHTTPHeaders collection that contains the list of HTTP header names for which a compressed response will not be requested when any of them is present in the request.

This property is read-only.

Syntax

HRESULT get_UnsupportedHeaders(
  IFPCHTTPHeaders **ppUnsupportedHeaders
);
' Data type: FPCHTTPHeaders

Property UnsupportedHeaders( _
  ByVal ppUnsupportedHeaders As IFPCHTTPHeaders _
) As FPCHTTPHeaders

Property value

Reference to an FPCHTTPHeaders collection that contains the list of HTTP header names for which a compressed response will not be requested when any of them is present in the request.

Error codes

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This property is read-only. HTTP header names can be added or removed by calling the methods of the FPCHTTPHeaders collection retrieved (the IFPCHTTPHeaders interface retrieved in C++).

This property cannot be accessed through Forefront TMG Management.

Examples

This VBScript script displays the list of HTTP header names for which a compressed response will not be requested when any of them is present in the request for an array. This script can be run only on an array member.

' Create the root object.
Dim root  ' The FPCLib.FPC root object
Set root = CreateObject("FPC.Root")
' Declare the other objects needed.
Dim isaArray          ' An FPCArray object
Dim httpHeaders       ' An FPCHTTPHeaders collection
Dim httpHeader        ' A String
' Get references to the array object 
' and the HTTP headers collection.
Set isaArray = root.GetContainingArray()
With isaArray.ArrayPolicy.WebProxy.HTTPCompressionConfiguration
    Set httpHeaders = .UnsupportedHeaders
End With
' Display the unsupported HTTP headers.
For Each httpHeader In httpHeaders
    WScript.Echo httpHeader
Next

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCHTTPCompressionConfiguration

 

 

Build date: 7/12/2010