OpenWGA 7.9 - TMLScript reference

HttpResult
Method :

getHeader(headername)

On object HttpResult
Usage Get a http header value of an http response
Parameters

headername (String):

The name of the header to get

Writable False
Return value The header value
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples
WGA.HttpClient(ur).get(function(result){
console.log("contenttype", result.getHeader("content-type"))
// same as result.contentType
})