Share via


setRequestHeader Method (IXMLHTTPRequest)

Specifies the name of an HTTP header.

oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue);

HRESULT setRequestHeader(
  BSTR bstrHeader, 
  BSTR bstrValue
);

General Remarks

If another header already exists with this name, it is replaced.

This method applies to the following interface:

IXMLHTTPRequest

See Also

getResponseHeader Method

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.