Script.Util.HttpResponse

Returns this object from the send() method used for HttpGet() and HttpRequest() request handlers. This object contains information returned from the external URL specified in the request. The timeout value for this function is 30 seconds.

Script.Util.HttpResponse(1)

OrdinalTypeDescription
1stringRequiredReturns the specified response header
  • content - String value containing HTTP response content returned from URL

  • contentType - String value indicating content type returned by response

  • encoding - String value indicating encoding returned by response

  • headers - Object containing HTTP response header collection returned from response

  • returnStatus Integer value containing the response to the request.

    • 0 - OK
    • 1 - Empty URL
    • 2 - Call failed
    • 3 - Call succeeded with empty content
  • statusCode - Integer value containing the HTTP response status code returned from URL, such as 200, 404, or 500