Test page for bug 15356 and bug 29121

Assertion: Invoking the getResponseHeader method when readyState >= 2 (HEADERS_RECEIVED) returns a header value if the header exists.

Assertion: Invoking the getResponseHeader method with the parameter satisfying the following conditions causes getResponseHeader to return null:

  • 1a. The parameter case-insensitively matches Set-Cookie;
  • 1b. The parameter case-insensitively matches Set-Cookie2;
  • 2. The parameter does not match any header in the response;
  • 3a. The parameter is null (it is not a valid header name);
  • 3b. The parameter is "Content-Type:" (it is not a valid header name).