Performs an HTTP GET using the provided name and value pairs against the passed URL and returns a JSON object containing a status value and the HTTP response. You can include multiple pairs of header names and values.
Get(1, 2, 3)
|1||string||Required||Destination URL for the HTTP GET request|
|2||array||Array of header names to include in the request|
|3||array||Array of header values corresponding to the header names included in the request|
Marketing Cloud recognizes any character set returned in the HTTP headers via Content-Type. For example, you can use a UTF-8 encoded HTML file with Content-Type: text/html; charset=utf-8 included in the header. If the encoding is not specified in the header, the application assumes all returned data will be in the character set WindowsCodePage 1252. You can change this default by contacting Global Support.
This sample code performs a HTTP GET and returns the response:
This sample code performs a HTTP GET and returns the response object: