You can log any text output from your JavaScript functions using the Log() function. For example:
var myHeader = P55_LAST_REQUEST_OBJECT.getResponseHeader('Content-Type'); Log('HTTP Header Content-Type: ' + myHeader); // var headers = P55_LAST_REQUEST_OBJECT.getAllResponseHeaders(); Log('HTTP Headers - All: ' + headers);