setRequestHeader - method of the HttpRequest object
Description:
Retrieves the value of a specific HTTP request header.
Syntax:
Empty setRequestHeader(String sHeader, String sValue)
Parameters:
sHeader | (String) Header name (for example: "Content-Type"). |
sValue | (String) Header value (for example: "text/xml; charset=utf-8"). |
---|
Example1:
JavaScriptVBScriptSelect and copy to clipboard
oReq.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
oReq.setRequestHeader "Content-Type", "text/xml; charset=utf-8"