Specifies the name of an HTTP header.
Visual Basic Syntax
oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue)
C/C++ Syntax
HRESULT setRequestHeader( BSTR bstrHeader, BSTR bstrValue);
Parameters
- bstrHeader
- [in] Header name to set; for example, "depth". This parameter should not contain a colon and should be the actual text of the HTTP header.
- bstrValue
- [in] Value of the header; for example, "infinity".
C/C++ Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
If another header already exists with this name, it is replaced.
See Also