Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Net.WebRequestExecutor.getAllResponseHeaders Method

Gets all the response headers for the current request.

Syntax

var responseHeaders = MyExecutor.getAllResponseHeaders();

Remarks

If a request finished successfully and with valid response data, this method returns all the response headers.

Example

The following example shows how to use the getAllResponseHeaders method by using the default Sys.Net.XMLHttpExecutor class.

JavaScript

// Get all the headers.    
resultElementId.innerHTML += 
"All Request Headers: " +
    executor.getAllResponseHeaders() + "<br/>";