body

The body of the HTTP response in the form of a MemoryBuffer object.


            body
            
         

Remarks

The encoding of the response body is accessible via the codePage property. The body of the HTTP response is given in the form of a MemoryBuffer object. All methods applicable to a MemoryBuffer are therefore applicable to the body of the HTTP response. Example:

      var http = new HttpClientRequest("http://www.google.com/")
http.execute()
var response = http.response
if( response.code != 200 )
  throw "HTTP request failed with " + response.message
var content = response.body.toString(response.codePage)

Features

Property of class: HttpClientResponse

Read only:

Yes

Available in:

  • Content management
  • Delivery properties
  • Typology rule
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow