Share via


SetAdditionalHeaders method

[IExtensionServices::SetAdditionalHeaders may be altered or unavailable in subsequent versions of the operating system or product.]

Sets additional headers to append to the HTTP request.

Syntax

HRESULT retVal = object.SetAdditionalHeaders(pwzAdditionalHeaders);

Parameters

  • pwzAdditionalHeaders [in]
    Type: LPCWSTR

    A pointer to a string variable that specifies additional HTTP headers.

Remarks

Separate multiple HTTP headers with a CR-LF (carriage return/line feed) sequence. This method appends a CR-LF sequence to the specified string, if the input does not include it.

See also

RFC2616, Section 14: Header Field Definitions