HTTP.Get()
Performs an HTTP GET by using the provided name and value pairs against the passed URL, and it returns a JSON object that contains a status value and the HTTP response. You can include multiple pairs of header names and values. This function only works with HTTP on port 80 and HTTPS on port 443.
The HTTP.Get()
function has the properties listed in this table.
Ordinal | Type | Description |
---|---|---|
1 | String | Required. The destination URL for the HTTP GET request. |
2 | Array | An array of header names to include in the request. |
3 | Array | An array of header values to include in the request. |
This sample code performs an HTTP GET and outputs the response object.
The response is a JSON object that contains a numeric status value and the response body of the GET request.