Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXMLHTTPRequest2::SetRequestHeader method

Specifies the name of an HTTP header to be sent to the server along with the default request headers.

Syntax


HRESULT SetRequestHeader(
  [in] String pwszHeader,
  [in] String pwszValue
);

Parameters

pwszHeader [in]

A case-insensitive header name.

pwszValue [in]

Value of the specified header.

Return value

Returns S_OK on success.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Version

MSXML 6.0 and later

Header

Msxml6.h

IDL

Msxml6.idl

See also

IXMLHTTPRequest2

 

 

Community Additions

Show:
© 2018 Microsoft