HTTP response object

Properties

headers

Object with properties representing all of the received HTTP headers

multiheaders

Object with properties representing all of the received HTTP multiheaders

statuscode (Available from 4.99.211)

Error string if request failed with error. Needs noFail set to true in request params.

Functions

toString()

Convert the response to a String. This will do a number of things.

1. Convert the contents to UTF-8 (IE, convert from the charset set in the HTTP content-type response header. If no content-type header is present it assumes UTF-8.

2. If content-type is XML (application/xml or text/xml) it will strip the leading xml tag. This is so the string can be fed directly into Javascript's XML E4X parser.