UnsupportedHeaders Property of the IFPCHTTPCompressionConfiguration Interface
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.
C++
HRESULT get_UnsupportedHeaders(
IFPCHTTPHeaders** ppUnsupportedHeaders
);
Parameters
- ppUnsupportedHeaders
Address of an interface pointer that on return points to an IFPCHTTPHeaders interface that represents the list of HTTP header names for which a compressed response will not be requested when any of them is present in the request.
Return Value
This property method returns S_OK if the call is successful; otherwise, it returns an error code.
Visual Basic
Property UnsupportedHeaders 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.
Example Code
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
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.
Requirements
Client | Requires Windows 7 or Windows Vista. |
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
IDL | Declared in Msfpccom.idl. |
DLL | Requires Msfpccom.dll. |
See Also
FPCHTTPCompressionConfiguration
Send comments about this topic to Microsoft
Build date: 6/30/2010