Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

getResponseHeader

Description

Returns the header field value from the response of which the field name matches header, unless the field name is Set-Cookie or Set-Cookie2. Returns null if either the response has not yet been received or the header doesn't exist in the response. 


Basic Example: 
Code Block
languagejs
 var headerValue = request.getResponseHeader(header);

 

Parameters

 

NameRequiredTypeDefaultDescription
header
Yes
string
 

Name of the header as expected from the response.