OpenWGA 7.7 - TMLScript reference



Description Object used as callback parameter to HttpClient methods.
Retrieval This object is used in callback functions in HttpClient methods get/put/post/delete.
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
contentType The content Type of the http response
getHeader(headername) Get a http header value of an http response
inputStream Get an input stream to read binary data from an http request.
status The Http Status code from the called http method.
statusText The Http Status message as String from the called http method.
text Read the result of an http method as text (String). The encoding is used from http header "content-type" of the response.
console.log(httpresult.status, httpresult.text);