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.


var responseHeaders = MyExecutor.getAllResponseHeaders();


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


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


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